[V3] Change presence (continued fixes) (#1438)

* This better fixes the root issue rather than attempting to work around it

* move bot_in_guild to checks, and use the correct syntax
This commit is contained in:
Michael H
2018-03-20 20:12:40 -04:00
committed by Kowlin
parent 749af89e9f
commit 01b9843883
2 changed files with 17 additions and 12 deletions

View File

@@ -54,6 +54,12 @@ def admin_or_permissions(**perms):
return commands.check(predicate)
def bot_in_a_guild(**kwargs):
async def predicate(ctx):
return len(ctx.bot.guilds) > 0
return commands.check(predicate)
def guildowner_or_permissions(**perms):
async def predicate(ctx):
has_perms_or_is_owner = await check_permissions(ctx, perms)