From 75eab9073d7bebf6436f26aca69f66e1a7015c2f Mon Sep 17 00:00:00 2001 From: plun1331 <49261529+plun1331@users.noreply.github.com> Date: Sat, 29 Jan 2022 13:09:09 -0800 Subject: [PATCH] Update bot.py --- discord/ext/commands/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: