aboutsummaryrefslogtreecommitdiff
path: root/discord/ext/commands/bot.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-27 17:14:22 -0500
committerRapptz <[email protected]>2017-01-27 17:14:22 -0500
commit8fa50a8f3ee732902e57e154fa6400c8dd0bf64d (patch)
tree6e8cff742216290cfecca81bc7a44129d5a0e5b6 /discord/ext/commands/bot.py
parentAdd ClientUser.friends and ClientUser.blocked (diff)
downloaddiscord.py-8fa50a8f3ee732902e57e154fa6400c8dd0bf64d.tar.xz
discord.py-8fa50a8f3ee732902e57e154fa6400c8dd0bf64d.zip
[commands] Add Context.command_failed attribute.
Diffstat (limited to 'discord/ext/commands/bot.py')
-rw-r--r--discord/ext/commands/bot.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index bbf0d995..1913a319 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -627,6 +627,7 @@ class BotBase(GroupMixin):
except CommandError as e:
yield from ctx.command.dispatch_error(e, ctx)
else:
+ ctx.command_failed = False
self.dispatch('command_completion', ctx)
elif ctx.invoked_with:
exc = CommandNotFound('Command "{}" is not found'.format(ctx.invoked_with))