diff options
| author | Jonas Bohmann <[email protected]> | 2021-01-23 17:20:08 +0100 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-01-24 05:17:47 -0500 |
| commit | 0d8ac415511d9d5cfaf9cbd8d354cbf38ae6294d (patch) | |
| tree | 6aa502b2e03a0df970cf6eac6d41f1099da46211 /discord/ext/commands/context.py | |
| parent | Add PartialEmoji.url_as (diff) | |
| download | discord.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.py | 2 |
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 |