aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2018-07-21 02:52:45 -0400
committerRapptz <[email protected]>2018-07-21 02:52:45 -0400
commit8d3b2d0b7094d924b1f1640c1ef75c40cfe180b2 (patch)
tree16a8743ed3a7c676b720478724cd72489548b845
parent[commands] Fix typing.Union converters for 3.7 (diff)
downloaddiscord.py-8d3b2d0b7094d924b1f1640c1ef75c40cfe180b2.tar.xz
discord.py-8d3b2d0b7094d924b1f1640c1ef75c40cfe180b2.zip
[commands] Fix broken handling of keyword only parameters.
Had a missing `param` argument in the new `do_conversion` code.
-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 4035035f..9604b5a3 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -413,7 +413,7 @@ class Command:
if self.rest_is_raw:
converter = self._get_converter(param)
argument = view.read_rest()
- kwargs[name] = await self.do_conversion(ctx, converter, argument)
+ kwargs[name] = await self.do_conversion(ctx, converter, argument, param)
else:
kwargs[name] = await self.transform(ctx, param)
break