|
@ -1318,7 +1318,7 @@ def check(predicate): |
|
|
|
|
|
|
|
|
def owner_or_permissions(**perms): |
|
|
def owner_or_permissions(**perms): |
|
|
original = commands.has_permissions(**perms).predicate |
|
|
original = commands.has_permissions(**perms).predicate |
|
|
def extended_check(ctx): |
|
|
async def extended_check(ctx): |
|
|
if ctx.guild is None: |
|
|
if ctx.guild is None: |
|
|
return False |
|
|
return False |
|
|
return ctx.guild.owner_id == ctx.author.id or await original(ctx) |
|
|
return ctx.guild.owner_id == ctx.author.id or await original(ctx) |
|
|