Update FlanaDiscBot.is_punished

This commit is contained in:
AlberLC
2022-12-03 06:54:52 +01:00
parent 597bab672e
commit 73bedd9b52

View File

@@ -204,6 +204,7 @@ class FlanaDiscBot(DiscordBot, FlanaBot):
async def is_punished(self, user: int | str | User, group_: int | str | Chat | Message) -> bool:
user = await self.get_user(user, group_)
group_id = self.get_group_id(group_)
return bool(Punishment.find({
'platform': self.platform.value,
'user_id': user.id,