aboutsummaryrefslogtreecommitdiff
path: root/discord/ext/commands/bot.py
diff options
context:
space:
mode:
authorBeatButton <[email protected]>2018-09-09 09:19:50 -0600
committerRapptz <[email protected]>2018-09-14 22:55:27 -0400
commita4d1599ce92e39d93ff6ccb08ef4511d8b2543be (patch)
tree11af80b8e22dce5f37ed7f9cdd157d5213c8fd90 /discord/ext/commands/bot.py
parentBump aiohttp contraint to <3.5.0 (diff)
downloaddiscord.py-a4d1599ce92e39d93ff6ccb08ef4511d8b2543be.tar.xz
discord.py-a4d1599ce92e39d93ff6ccb08ef4511d8b2543be.zip
Change docstrings to raw-strings
Diffstat (limited to 'discord/ext/commands/bot.py')
-rw-r--r--discord/ext/commands/bot.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index e7257bbd..b90f5dce 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -234,7 +234,7 @@ class BotBase(GroupMixin):
# global check registration
def check(self, func):
- """A decorator that adds a global check to the bot.
+ r"""A decorator that adds a global check to the bot.
A global check is similar to a :func:`.check` that is applied
on a per command basis except it is run before any command checks
@@ -302,7 +302,7 @@ class BotBase(GroupMixin):
pass
def check_once(self, func):
- """A decorator that adds a "call once" global check to the bot.
+ r"""A decorator that adds a "call once" global check to the bot.
Unlike regular global checks, this one is called only once
per :meth:`.Command.invoke` call.
@@ -393,7 +393,7 @@ class BotBase(GroupMixin):
return coro
def after_invoke(self, coro):
- """A decorator that registers a coroutine as a post-invoke hook.
+ r"""A decorator that registers a coroutine as a post-invoke hook.
A post-invoke hook is called directly after the command is
called. This makes it a useful function to clean-up database
@@ -810,7 +810,7 @@ class BotBase(GroupMixin):
return ret
async def get_context(self, message, *, cls=Context):
- """|coro|
+ r"""|coro|
Returns the invocation context from the message.