diff options
| author | Skye Im <[email protected]> | 2020-09-08 04:29:02 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-07 22:29:02 -0400 |
| commit | af88fc19b3c062e27ffe354df77413158f8a2813 (patch) | |
| tree | 6d3d8b931aee9f19f187bf31c11692b0a79ff013 | |
| parent | [docs] remove unresolved doc refs, fix attribute ref (diff) | |
| download | discord.py-af88fc19b3c062e27ffe354df77413158f8a2813.tar.xz discord.py-af88fc19b3c062e27ffe354df77413158f8a2813.zip | |
[commands] Update Bot.command() decorator docs
| -rw-r--r-- | discord/ext/commands/core.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 04d5c7d9..79e6461d 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -1237,6 +1237,11 @@ class GroupMixin: def command(self, *args, **kwargs): """A shortcut decorator that invokes :func:`.command` and adds it to the internal command list via :meth:`~.GroupMixin.add_command`. + + Returns + -------- + Callable[..., :class:`Command`] + A decorator that converts the provided method into a Command, adds it to the bot, then returns it """ def decorator(func): kwargs.setdefault('parent', self) |