aboutsummaryrefslogtreecommitdiff
path: root/discord/ext/commands/context.py
diff options
context:
space:
mode:
authorJonas Bohmann <[email protected]>2021-01-23 17:20:08 +0100
committerRapptz <[email protected]>2021-01-24 05:17:47 -0500
commit0d8ac415511d9d5cfaf9cbd8d354cbf38ae6294d (patch)
tree6aa502b2e03a0df970cf6eac6d41f1099da46211 /discord/ext/commands/context.py
parentAdd PartialEmoji.url_as (diff)
downloaddiscord.py-0d8ac415511d9d5cfaf9cbd8d354cbf38ae6294d.tar.xz
discord.py-0d8ac415511d9d5cfaf9cbd8d354cbf38ae6294d.zip
[commands] Fix documented type of `Context.cog`
Diffstat (limited to 'discord/ext/commands/context.py')
-rw-r--r--discord/ext/commands/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py
index 155e4797..c4691155 100644
--- a/discord/ext/commands/context.py
+++ b/discord/ext/commands/context.py
@@ -204,7 +204,7 @@ class Context(discord.abc.Messageable):
@property
def cog(self):
- """:class:`.Cog`: Returns the cog associated with this context's command. None if it does not exist."""
+ """Optional[:class:`.Cog`]: Returns the cog associated with this context's command. None if it does not exist."""
if self.command is None:
return None