From 8bfbaf26a15eec100b27aac9db53acedadd584f2 Mon Sep 17 00:00:00 2001 From: No767 <73260931+No767@users.noreply.github.com> Date: Sat, 2 Nov 2024 22:26:09 -0700 Subject: [PATCH] Remove unnecessary interaction check with CommandTree errors --- bot/libs/utils/tree.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bot/libs/utils/tree.py b/bot/libs/utils/tree.py index f4107f3..da42da9 100644 --- a/bot/libs/utils/tree.py +++ b/bot/libs/utils/tree.py @@ -71,11 +71,6 @@ async def on_error( interaction.command.qualified_name, # type: ignore exc_info=original, ) - if interaction.response.is_done(): - await interaction.followup.send( - embed=FullErrorEmbed(error), ephemeral=True - ) - return await interaction.response.send_message( embed=FullErrorEmbed(error), ephemeral=True )