aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-06-23 20:17:19 -0400
committerRapptz <[email protected]>2016-06-23 20:17:19 -0400
commit6556392a9c62c7fd057fb47a48457ee99cb0dc91 (patch)
tree989f2b73675a96ee3eb659bcac550df54ad42090
parent[commands] Fix bug that made functions stop working as converters. (diff)
downloaddiscord.py-6556392a9c62c7fd057fb47a48457ee99cb0dc91.tar.xz
discord.py-6556392a9c62c7fd057fb47a48457ee99cb0dc91.zip
[commands] Fix error where consume rest would not work.
I didn't end up refactoring this piece of work out.
-rw-r--r--discord/ext/commands/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index 62ae0408..9308e9ce 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -306,7 +306,7 @@ class Command:
if self.rest_is_raw:
converter = self._get_converter(param)
argument = view.read_rest()
- kwargs[name] = yield from self.do_conversion(ctx.bot, ctx.message, converter, argument)
+ kwargs[name] = yield from self.do_conversion(ctx, converter, argument)
else:
kwargs[name] = yield from self.transform(ctx, param)
break