mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Permissions] Remove hook from is_owner check (#2053)
Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
parent
dd5ef3696f
commit
9af58d3abf
@ -17,8 +17,7 @@ async def check_overrides(ctx, *, level):
|
||||
|
||||
def is_owner(**kwargs):
|
||||
async def check(ctx):
|
||||
override = await check_overrides(ctx, level="owner")
|
||||
return override if override is not None else await ctx.bot.is_owner(ctx.author, **kwargs)
|
||||
return await ctx.bot.is_owner(ctx.author, **kwargs)
|
||||
|
||||
return commands.check(check)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user