From 45c6619018da8a5b00c293642b9ceb19b8c48e86 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 28 Jan 2016 16:44:16 -0500 Subject: [PATCH] [commands] Context.invoke will now return what the command returns. --- discord/ext/commands/context.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index 012f65a73..7413eead8 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -112,5 +112,6 @@ class Context: arguments.extend(args) - yield from command.callback(*arguments, **kwargs) + ret = yield from command.callback(*arguments, **kwargs) + return ret