diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 57d5955be8..ed8bc60263 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -314,7 +314,7 @@ class be provided, it must be similar enough to :class:`.Context`\'s ctx.invoked_with = invoker # type-checker fails to narrow invoked_prefix type. ctx.prefix = invoked_prefix # type: ignore - ctx.command = self.all_commands.get(invoker) + ctx.command = self.prefixed_commands.get(invoker) return ctx async def invoke(self, ctx: Context) -> None: