Fix is_in_guild example check

This commit is contained in:
LyricLy 2018-11-12 12:09:43 +13:00 committed by Rapptz
parent 4f501f62e6
commit 6bfd92e4a5

View File

@ -648,7 +648,7 @@ When multiple checks are specified, **all** of them must be ``True``:
def is_in_guild(guild_id):
async def predicate(ctx):
return ctx.guild and ctx.guild.id == guild_id
return commands.check(is_in_guild)
return commands.check(predicate)
@bot.command()
@is_in_guild(41771983423143937)