mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Fix is_in_guild example check
This commit is contained in:
1 parent
4f501f62e6
commit
6bfd92e4a5
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user