diff options
| author | PapyrusThePlant <[email protected]> | 2016-07-07 23:44:50 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-07-08 04:29:05 -0400 |
| commit | 1aaeeff02b951ec9dd95e6c9f844fdaec420f05c (patch) | |
| tree | 019700c3a0af44606f0e599f3864d5d025dff300 /discord/ext | |
| parent | Save email when login with a token on a user account (diff) | |
| download | discord.py-1aaeeff02b951ec9dd95e6c9f844fdaec420f05c.tar.xz discord.py-1aaeeff02b951ec9dd95e6c9f844fdaec420f05c.zip | |
[commands] Added missing parenthesis in examples
Diffstat (limited to 'discord/ext')
| -rw-r--r-- | discord/ext/commands/bot.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 44a9f352..38260a50 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -63,8 +63,8 @@ def when_mentioned(bot, msg): def when_mentioned_or(*prefixes): """A callable that implements when mentioned or other prefixes provided. - Examples - --------- + Example + -------- .. code-block:: python @@ -466,7 +466,7 @@ class Bot(GroupMixin, discord.Client): .. code-block:: python - @bot.check + @bot.check() def whitelist(ctx): return ctx.message.author.id in my_whitelist @@ -520,8 +520,8 @@ class Bot(GroupMixin, discord.Client): name : Optional[str] The name of the command to use. Defaults to ``func.__name__``. - Examples - --------- + Example + -------- .. code-block:: python @@ -569,12 +569,12 @@ class Bot(GroupMixin, discord.Client): The functions being listened to must be a coroutine. - Examples - --------- + Example + -------- .. code-block:: python - @bot.listen + @bot.listen() async def on_message(message): print('one') |