diff options
| author | BeatButton <[email protected]> | 2018-09-09 09:19:50 -0600 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-09-14 22:55:27 -0400 |
| commit | a4d1599ce92e39d93ff6ccb08ef4511d8b2543be (patch) | |
| tree | 11af80b8e22dce5f37ed7f9cdd157d5213c8fd90 /discord/ext/commands/bot.py | |
| parent | Bump aiohttp contraint to <3.5.0 (diff) | |
| download | discord.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.py | 8 |
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. |