MCPcopy Create free account
hub / github.com/VJBots/VJ-Forward-Bot / remove_ban

Method remove_ban

database.py:42–47  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

40 return count, bcount
41
42 async def remove_ban(self, id):
43 ban_status = dict(
44 is_banned=False,
45 ban_reason=''
46 )
47 await self.col.update_one({'id': id}, {'$set': {'ban_status': ban_status}})
48
49 async def ban_user(self, user_id, ban_reason="No Reason"):
50 ban_status = dict(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected