[commands] Added missing parenthesis in examples

This commit is contained in:
PapyrusThePlant 2016-07-07 23:44:50 +02:00 committed by Rapptz
parent 18e77f356d
commit 1aaeeff02b

View File

@ -63,8 +63,8 @@ def when_mentioned(bot, msg):
def when_mentioned_or(*prefixes): def when_mentioned_or(*prefixes):
"""A callable that implements when mentioned or other prefixes provided. """A callable that implements when mentioned or other prefixes provided.
Examples Example
--------- --------
.. code-block:: python .. code-block:: python
@ -466,7 +466,7 @@ class Bot(GroupMixin, discord.Client):
.. code-block:: python .. code-block:: python
@bot.check @bot.check()
def whitelist(ctx): def whitelist(ctx):
return ctx.message.author.id in my_whitelist return ctx.message.author.id in my_whitelist
@ -520,8 +520,8 @@ class Bot(GroupMixin, discord.Client):
name : Optional[str] name : Optional[str]
The name of the command to use. Defaults to ``func.__name__``. The name of the command to use. Defaults to ``func.__name__``.
Examples Example
--------- --------
.. code-block:: python .. code-block:: python
@ -569,12 +569,12 @@ class Bot(GroupMixin, discord.Client):
The functions being listened to must be a coroutine. The functions being listened to must be a coroutine.
Examples Example
--------- --------
.. code-block:: python .. code-block:: python
@bot.listen @bot.listen()
async def on_message(message): async def on_message(message):
print('one') print('one')