Skip to content

Commit

Permalink
can we check if the message got already responded?
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonak-Adipta-Kalita committed Mar 3, 2023
1 parent 9087d93 commit cf7f090
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bot/src/core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ async def on_slash_command_error(
),
ephemeral=True,
)
elif isinstance(error, disnake.errors.InteractionResponded):
await inter.edit_original_message(
embed=embeds.error_embed()
)
else:
await inter.response.send_message(
embed=embeds.error_embed(repr(error)), ephemeral=True
Expand Down

1 comment on commit cf7f090

@vercel
Copy link

@vercel vercel bot commented on cf7f090 Mar 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.