mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-26 02:53:07 +00:00
[commands] Add Context.command_failed attribute.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user