mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-11 04:17:58 +00:00
Actually use multiple checks in the examples for checks.
This commit is contained in:
parent
abb9c067cc
commit
446b79241c
@ -653,6 +653,7 @@ When multiple checks are specified, **all** of them must be ``True``:
|
|||||||
return commands.check(predicate)
|
return commands.check(predicate)
|
||||||
|
|
||||||
@bot.command()
|
@bot.command()
|
||||||
|
@commands.is_owner()
|
||||||
@is_in_guild(41771983423143937)
|
@is_in_guild(41771983423143937)
|
||||||
async def secretguilddata(ctx):
|
async def secretguilddata(ctx):
|
||||||
"""super secret stuff"""
|
"""super secret stuff"""
|
||||||
@ -667,6 +668,7 @@ raise a custom :exc:`~ext.commands.CommandError` derived exception, then it will
|
|||||||
.. code-block:: python3
|
.. code-block:: python3
|
||||||
|
|
||||||
@bot.command()
|
@bot.command()
|
||||||
|
@commands.is_owner()
|
||||||
@is_in_guild(41771983423143937)
|
@is_in_guild(41771983423143937)
|
||||||
async def secretguilddata(ctx):
|
async def secretguilddata(ctx):
|
||||||
"""super secret stuff"""
|
"""super secret stuff"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user