MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / get_prefix

Method get_prefix

helper/database.py:75–77  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

73 await self.col.update_one({'_id': int(id)}, {'$set': {'prefix': prefix}})
74
75 async def get_prefix(self, id):
76 user = await self.col.find_one({'_id': int(id)})
77 return user.get('prefix', None)
78
79 async def set_suffix(self, id, suffix):
80 await self.col.update_one({'_id': int(id)}, {'$set': {'suffix': suffix}})

Callers 2

delete_prefixFunction · 0.80
see_prefixFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected