diff options
| author | LyricLy <[email protected]> | 2018-11-12 12:09:43 +1300 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-11-24 23:01:46 -0500 |
| commit | 6bfd92e4a542dc06a668272238e6f09acb55c6ac (patch) | |
| tree | a71ff23c87f6d06a78eba18be64c823c930074b1 /docs/ext/commands | |
| parent | Translated some parts of the documentation to Japanese. (diff) | |
| download | discord.py-6bfd92e4a542dc06a668272238e6f09acb55c6ac.tar.xz discord.py-6bfd92e4a542dc06a668272238e6f09acb55c6ac.zip | |
Fix is_in_guild example check
Diffstat (limited to 'docs/ext/commands')
| -rw-r--r-- | docs/ext/commands/commands.rst | 2 |
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) |