From d9f71986d005ceea03b6b109baaeeea16c5445ed Mon Sep 17 00:00:00 2001 From: BobDotCom <71356958+BobDotCom@users.noreply.github.com> Date: Tue, 6 Sep 2022 17:21:08 -0500 Subject: [PATCH] Fix TypeError in process_application_commands (#1622) --- discord/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/bot.py b/discord/bot.py index afcaa0d6a0..ee7b598008 100644 --- a/discord/bot.py +++ b/discord/bot.py @@ -719,7 +719,7 @@ async def process_application_commands(self, interaction: Interaction, auto_sync if interaction.type not in ( InteractionType.application_command, InteractionType.auto_complete, - ) and isinstance(interaction.data, interactions.ComponentInteractionData): + ): return command: Optional[ApplicationCommand] = None