[commands] Fix bug where Context.command would not update.

This commit is contained in:
Rapptz
2016-06-04 22:29:50 -04:00
parent 9d9a20c128
commit 37dfe38af5
2 changed files with 2 additions and 1 deletions

View File

@@ -638,7 +638,6 @@ class Bot(GroupMixin, discord.Client):
if invoker in self.commands:
command = self.commands[invoker]
self.dispatch('command', command, ctx)
ctx.command = command
try:
yield from command.invoke(ctx)
except CommandError as e: