aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/ext/commands/commands.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ext/commands/commands.rst b/docs/ext/commands/commands.rst
index 5b36fc06..6f5b3d00 100644
--- a/docs/ext/commands/commands.rst
+++ b/docs/ext/commands/commands.rst
@@ -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)