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):
|
def is_in_guild(guild_id):
|
||||||
async def predicate(ctx):
|
async def predicate(ctx):
|
||||||
return ctx.guild and ctx.guild.id == guild_id
|
return ctx.guild and ctx.guild.id == guild_id
|
||||||
return commands.check(is_in_guild)
|
return commands.check(predicate)
|
||||||
|
|
||||||
@bot.command()
|
@bot.command()
|
||||||
@is_in_guild(41771983423143937)
|
@is_in_guild(41771983423143937)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user