From 07840db0538c3ddd9417c84ab6871cee618a43f9 Mon Sep 17 00:00:00 2001 From: Josh B Date: Sat, 28 Sep 2019 03:00:47 +1000 Subject: [PATCH] Document Command.cog property --- discord/ext/commands/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 8bc72e271..4e5721a22 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