mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Fix is_in_guild example check
This commit is contained in:
parent
4f501f62e6
commit
6bfd92e4a5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user