From a4d1599ce92e39d93ff6ccb08ef4511d8b2543be Mon Sep 17 00:00:00 2001 From: BeatButton Date: Sun, 9 Sep 2018 09:19:50 -0600 Subject: Change docstrings to raw-strings --- discord/ext/commands/bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'discord/ext/commands/bot.py') 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. -- cgit v1.2.3