mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Address change in behavior of bool(Permissions()) on d.py 2.x (#6148)
This commit is contained in:
parent
2369017f6a
commit
31b975eecc
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user