diff options
| author | NextChai <[email protected]> | 2021-05-15 02:09:37 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-15 02:09:37 -0400 |
| commit | ef6f5d947ad67640cd82aea7889399f5b0ff48ea (patch) | |
| tree | f24805908c6b4e986d75e5596698f99ffbd3ce2c /discord/ext | |
| parent | Update docs for (Partial)Message.publish to reflect the actual permissions ne... (diff) | |
| download | discord.py-ef6f5d947ad67640cd82aea7889399f5b0ff48ea.tar.xz discord.py-ef6f5d947ad67640cd82aea7889399f5b0ff48ea.zip | |
[commands] Update command.parent and command.parents docs
* Switch root_parent from command to group
Diffstat (limited to 'discord/ext')
| -rw-r--r-- | discord/ext/commands/core.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index a736debb..e6f9e9c1 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -174,8 +174,8 @@ class Command(_BaseCommand): If the command is invoked while it is disabled, then :exc:`.DisabledCommand` is raised to the :func:`.on_command_error` event. Defaults to ``True``. - parent: Optional[:class:`Command`] - The parent command that this command belongs to. ``None`` if there + parent: Optional[:class:`Group`] + The parent group 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. @@ -556,7 +556,7 @@ class Command(_BaseCommand): @property def parents(self): - """List[:class:`Command`]: Retrieves the parents of this command. + """List[:class:`Group`]: Retrieves the parents of this command. If the command has no parents then it returns an empty :class:`list`. @@ -574,7 +574,7 @@ class Command(_BaseCommand): @property def root_parent(self): - """Optional[:class:`Command`]: Retrieves the root parent of this command. + """Optional[:class:`Group`]: Retrieves the root parent of this command. If the command has no parents then it returns ``None``. |