diff options
| author | Rapptz <[email protected]> | 2019-04-20 17:01:01 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-04-20 17:01:01 -0400 |
| commit | c6410ea9ab6671ae72157a5f23c154f7dc05ffa1 (patch) | |
| tree | b4474d18e13cf71200901ddfdaf0d38780310fd0 | |
| parent | [commands] Consistently mention inheritance of exceptions. (diff) | |
| download | discord.py-c6410ea9ab6671ae72157a5f23c154f7dc05ffa1.tar.xz discord.py-c6410ea9ab6671ae72157a5f23c154f7dc05ffa1.zip | |
[commands] Clean docstrings in Command.parents and Command.root_parent
| -rw-r--r-- | discord/ext/commands/core.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 5779717c..321e2c3b 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -507,14 +507,11 @@ class Command(_BaseCommand): def parents(self): """Retrieves the parents of this command. - .. versionadded:: 1.1.0 - If the command has no parents then it returns an empty :class:`list`. - For example in commands ``?a b c test``, - the parents are ``[c, b, a]``. - + For example in commands ``?a b c test``, the parents are ``[c, b, a]``. + .. versionadded:: 1.1.0 """ entries = [] command = self @@ -530,8 +527,7 @@ class Command(_BaseCommand): If the command has no parents then it returns ``None``. - For example in commands ``?a b c test``, the root parent is - ``a``. + For example in commands ``?a b c test``, the root parent is ``a``. """ if not self.parent: return None |