diff options
| author | Rapptz <[email protected]> | 2016-01-06 19:21:58 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-06 19:21:58 -0500 |
| commit | 8c6eeeed5f437f586fbca8a4b24690a538f61508 (patch) | |
| tree | 234d6b38aba196147bda36a7cbab5966a7b3b8dc | |
| parent | [commands] None default without specified type uses str now. (diff) | |
| download | discord.py-8c6eeeed5f437f586fbca8a4b24690a538f61508.tar.xz discord.py-8c6eeeed5f437f586fbca8a4b24690a538f61508.zip | |
[commands] Don't skip whitespace if the command trigger is found.
| -rw-r--r-- | discord/ext/commands/bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 35b1d149..c602a204 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -202,7 +202,6 @@ class Bot(GroupMixin, discord.Client): if not view.skip_string(prefix): return - view.skip_ws() invoker = view.get_word() tmp = { 'bot': self, @@ -212,6 +211,7 @@ class Bot(GroupMixin, discord.Client): } ctx = Context(**tmp) del tmp + if invoker in self.commands: command = self.commands[invoker] ctx.command = command |