From 8fa50a8f3ee732902e57e154fa6400c8dd0bf64d Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 27 Jan 2017 17:14:22 -0500 Subject: [commands] Add Context.command_failed attribute. --- discord/ext/commands/bot.py | 1 + 1 file changed, 1 insertion(+) (limited to 'discord/ext/commands/bot.py') 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)) -- cgit v1.2.3