aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh B <[email protected]>2019-09-28 03:00:47 +1000
committerRapptz <[email protected]>2019-10-17 05:56:01 -0400
commit07840db0538c3ddd9417c84ab6871cee618a43f9 (patch)
tree98b71861156d09e9b4025d170b477a16e2178a39
parentAdd europe region (diff)
downloaddiscord.py-07840db0538c3ddd9417c84ab6871cee618a43f9.tar.xz
discord.py-07840db0538c3ddd9417c84ab6871cee618a43f9.zip
Document Command.cog property
-rw-r--r--discord/ext/commands/core.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index 8bc72e27..4e5721a2 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -148,6 +148,8 @@ class Command(_BaseCommand):
parent: Optional[:class:`Command`]
The parent command that this command belongs to. ``None`` if there
isn't one.
+ cog: Optional[:class:`Cog`]
+ The cog that this command belongs to. ``None`` if there isn't one.
checks: List[Callable[..., :class:`bool`]]
A list of predicates that verifies if the command could be executed
with the given :class:`.Context` as the sole parameter. If an exception