diff options
Diffstat (limited to 'discord/ext/commands/bot.py')
| -rw-r--r-- | discord/ext/commands/bot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 33796f98..6d45f275 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -740,13 +740,13 @@ class BotBase(GroupMixin): try: yield from ctx.command.invoke(ctx) except CommandError as e: - yield from ctx.command.dispatch_error(e, ctx) + yield from ctx.command.dispatch_error(ctx, e) else: ctx.command_failed = False self.dispatch('command_completion', ctx) elif ctx.invoked_with: exc = CommandNotFound('Command "{}" is not found'.format(ctx.invoked_with)) - self.dispatch('command_error', exc, ctx) + self.dispatch('command_error', ctx, exc) @asyncio.coroutine def process_commands(self, message): |