We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06cfbf1 commit 748c7a4Copy full SHA for 748c7a4
discord/bot.py
@@ -247,8 +247,7 @@ async def handle_interaction(self, interaction: Interaction) -> None:
247
try:
248
command = self.app_commands[interaction.data["id"]]
249
except KeyError:
250
- print(f"Received unknown application command: {interaction.data}")
251
- await interaction.response.send_message("I didn't recognize that command")
+ self.dispatch("unknown_command", interaction)
252
else:
253
await command.invoke(interaction)
254
0 commit comments