mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 07:54:36 +00:00
[commands] Fix documented type of Context.cog
This commit is contained in:
parent
fb9aa2486d
commit
0d8ac41551
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user