Skip to content

Commit

Permalink
Remove unnecessary interaction check with CommandTree errors
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 committed Nov 3, 2024
1 parent b494b38 commit 8bfbaf2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions bot/libs/utils/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 8bfbaf2

Please sign in to comment.