diff options
| author | Rapptz <[email protected]> | 2017-01-27 17:14:22 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-27 17:14:22 -0500 |
| commit | 8fa50a8f3ee732902e57e154fa6400c8dd0bf64d (patch) | |
| tree | 6e8cff742216290cfecca81bc7a44129d5a0e5b6 /discord/ext/commands/bot.py | |
| parent | Add ClientUser.friends and ClientUser.blocked (diff) | |
| download | discord.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.py | 1 |
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)) |