aboutsummaryrefslogtreecommitdiff
path: root/discord/ext/commands/bot.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-06-05 00:35:27 -0400
committerRapptz <[email protected]>2016-06-05 00:35:27 -0400
commitb9c7b051763e11d2e3f9b526b4773c9e842a479f (patch)
tree54f47d6d978e4dd7c2fd9210ec6c1ddbd23364ba /discord/ext/commands/bot.py
parent[commands] Add Command.qualified_name to get the full command name. (diff)
downloaddiscord.py-b9c7b051763e11d2e3f9b526b4773c9e842a479f.tar.xz
discord.py-b9c7b051763e11d2e3f9b526b4773c9e842a479f.zip
[commands] Unify Command.handle_local_error into general dispatcher.
Diffstat (limited to 'discord/ext/commands/bot.py')
-rw-r--r--discord/ext/commands/bot.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index 8814021b..6fc36a3c 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -641,8 +641,7 @@ class Bot(GroupMixin, discord.Client):
try:
yield from command.invoke(ctx)
except CommandError as e:
- command.handle_local_error(e, ctx)
- self.dispatch('command_error', e, ctx)
+ command.dispatch_error(e, ctx)
else:
self.dispatch('command_completion', command, ctx)
else: