(self, id)
| 227 | await self.add_premium(user_id, user_data) |
| 228 | |
| 229 | async def remove_ban(self, id): |
| 230 | ban_status = dict( |
| 231 | is_banned=False, |
| 232 | ban_duration=0, |
| 233 | banned_on=datetime.date.max.isoformat(), |
| 234 | ban_reason='' |
| 235 | ) |
| 236 | await self.col.update_one({'_id': int(id)}, {'$set': {'ban_status': ban_status}}) |
| 237 | |
| 238 | async def ban_user(self, user_id, ban_duration, ban_reason): |
| 239 | ban_status = dict( |