From af88fc19b3c062e27ffe354df77413158f8a2813 Mon Sep 17 00:00:00 2001 From: Skye Im Date: Tue, 8 Sep 2020 04:29:02 +0200 Subject: [PATCH] [commands] Update Bot.command() decorator docs --- discord/ext/commands/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 04d5c7d9c..79e6461d0 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)