Address change in behavior of bool(Permissions()) on d.py 2.x (#6148)

This commit is contained in:
Jakub Kuczys 2023-05-12 20:02:41 +02:00 committed by GitHub
parent 2369017f6a
commit 31b975eecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ class Reports(commands.Cog):
await ctx.send(_("Reporting is now disabled.")) await ctx.send(_("Reporting is now disabled."))
async def internal_filter(self, m: discord.Member, mod=False, perms=None): async def internal_filter(self, m: discord.Member, mod=False, perms=None):
if perms and m.guild_permissions >= perms: if perms is not None and m.guild_permissions >= perms:
return True return True
if mod and await self.bot.is_mod(m): if mod and await self.bot.is_mod(m):
return True return True