aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-01-28 16:44:16 -0500
committerRapptz <[email protected]>2016-01-28 16:44:16 -0500
commit45c6619018da8a5b00c293642b9ceb19b8c48e86 (patch)
tree49b9c2a4ef22bf172d0cdc744b14a54b1b384595
parent[commands] Context.invoke just invokes a command with no special case. (diff)
downloaddiscord.py-45c6619018da8a5b00c293642b9ceb19b8c48e86.tar.xz
discord.py-45c6619018da8a5b00c293642b9ceb19b8c48e86.zip
[commands] Context.invoke will now return what the command returns.
-rw-r--r--discord/ext/commands/context.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py
index 012f65a7..7413eead 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