[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
|
@property
|
||||||
def cog(self):
|
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:
|
if self.command is None:
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user