mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
Fix role check in local blacklist/whitelist (#2134)
fixes #2133 , `discord.Role.is_default` is a method, not a property.
This commit is contained in:
parent
2784730f7f
commit
113b97b9c9
@ -26,7 +26,7 @@ def init_global_checks(bot):
|
||||
local_blacklist = await guild_settings.blacklist()
|
||||
local_whitelist = await guild_settings.whitelist()
|
||||
|
||||
_ids = [r.id for r in ctx.author.roles if not r.is_default]
|
||||
_ids = [r.id for r in ctx.author.roles if not r.is_default()]
|
||||
_ids.append(ctx.author.id)
|
||||
if local_whitelist:
|
||||
return any(i in local_whitelist for i in _ids)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user