mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user