removed self

This commit is contained in:
unknown 2023-03-16 17:35:16 +01:00
parent 4a15cef8f7
commit 5d0d8bddd9

View File

@ -24,13 +24,13 @@ class ReginaldCog(commands.Cog):
openai_api_key=None openai_api_key=None
) )
def has_kanium_role(self): def has_kanium_role():
async def predicate(ctx): async def predicate(ctx):
kanium_role_id = 280260875678515200 kanium_role_id = 280260875678515200
return any(role.id == kanium_role_id for role in ctx.author.roles) return any(role.id == kanium_role_id for role in ctx.author.roles)
return commands.check(predicate) return commands.check(predicate)
def has_admin_role(self): def has_admin_role():
async def predicate(ctx): async def predicate(ctx):
#janitor_role_id = 672156832323600396 #janitor_role_id = 672156832323600396
#has_janitor_role = any(role.id == janitor_role_id for role in ctx.author.roles) # Uncomment this line #has_janitor_role = any(role.id == janitor_role_id for role in ctx.author.roles) # Uncomment this line