clear user's warns on user ban
@@ -44,6 +44,10 @@ class Events(commands.Cog):
async def on_guild_remove(self, guild):
await self.db.drop_guild(guild.id)
+ @commands.Cog.listener()
+ async def on_member_ban(self, guild, user):
+ await self.db.clear_warns(user.id, guild.id)
+
@commands.Cog.listener()
async def on_message(self, m):
if m.author.bot:
