diff options
| author | Rapptz <[email protected]> | 2019-03-16 09:55:29 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-16 09:55:29 -0400 |
| commit | 053e2f5b9aff3921fe7b5d797c55a4847b4cc7ee (patch) | |
| tree | 4b021f9df979dc325156112fa0439fe474ce11d1 /discord/ext/commands/context.py | |
| parent | [commands] Rename it to Context.send_help for consistency. (diff) | |
| download | discord.py-053e2f5b9aff3921fe7b5d797c55a4847b4cc7ee.tar.xz discord.py-053e2f5b9aff3921fe7b5d797c55a4847b4cc7ee.zip | |
Fix documentation linking issue in Messageables and Context
Diffstat (limited to 'discord/ext/commands/context.py')
| -rw-r--r-- | discord/ext/commands/context.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index be88ae76..f7601914 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -38,7 +38,7 @@ class Context(discord.abc.Messageable): Attributes ----------- - message: :class:`discord.Message` + message: :class:`.Message` The message that triggered the command being executed. bot: :class:`.Bot` The bot that contains the command being executed. @@ -204,22 +204,22 @@ class Context(discord.abc.Messageable): @discord.utils.cached_property def channel(self): - """Returns the channel associated with this context's command. Shorthand for :attr:`Message.channel`.""" + """Returns the channel associated with this context's command. Shorthand for :attr:`.Message.channel`.""" return self.message.channel @discord.utils.cached_property def author(self): - """Returns the author associated with this context's command. Shorthand for :attr:`Message.author`""" + """Returns the author associated with this context's command. Shorthand for :attr:`.Message.author`""" return self.message.author @discord.utils.cached_property def me(self): - """Similar to :attr:`Guild.me` except it may return the :class:`ClientUser` in private message contexts.""" + """Similar to :attr:`.Guild.me` except it may return the :class:`.ClientUser` in private message contexts.""" return self.guild.me if self.guild is not None else self.bot.user @property def voice_client(self): - r"""Optional[:class:`VoiceClient`]: A shortcut to :attr:`Guild.voice_client`\, if applicable.""" + r"""Optional[:class:`.VoiceClient`]: A shortcut to :attr:`.Guild.voice_client`\, if applicable.""" g = self.guild return g.voice_client if g else None |