diff options
| author | Rapptz <[email protected]> | 2019-05-01 23:57:50 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-05-01 23:57:50 -0400 |
| commit | 446b79241cd376d3fcdab6689ed6390e70dd4fc9 (patch) | |
| tree | 728ba6aefaa0f3f78cc145e18ed040422a211561 /docs | |
| parent | Add log line to show if we disconnected normally. (diff) | |
| download | discord.py-446b79241cd376d3fcdab6689ed6390e70dd4fc9.tar.xz discord.py-446b79241cd376d3fcdab6689ed6390e70dd4fc9.zip | |
Actually use multiple checks in the examples for checks.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ext/commands/commands.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ext/commands/commands.rst b/docs/ext/commands/commands.rst index 19e2bf4a..325a7feb 100644 --- a/docs/ext/commands/commands.rst +++ b/docs/ext/commands/commands.rst @@ -653,6 +653,7 @@ When multiple checks are specified, **all** of them must be ``True``: return commands.check(predicate) @bot.command() + @commands.is_owner() @is_in_guild(41771983423143937) async def secretguilddata(ctx): """super secret stuff""" @@ -667,6 +668,7 @@ raise a custom :exc:`~ext.commands.CommandError` derived exception, then it will .. code-block:: python3 @bot.command() + @commands.is_owner() @is_in_guild(41771983423143937) async def secretguilddata(ctx): """super secret stuff""" |