Clear confirmation message content on delete result
Prevents double emoji display by clearing the "✅ Confirmed!" content
when showing the delete result embed.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b5365f01f9
commit
f4523b99f2
@ -607,14 +607,14 @@ class SingleCommandManagementView(BaseView):
|
||||
title="Delete Failed",
|
||||
description=f"Failed to delete command: {e}"
|
||||
)
|
||||
await interaction.edit_original_response(embed=embed, view=None)
|
||||
await interaction.edit_original_response(content=None, embed=embed, view=None)
|
||||
else:
|
||||
# User cancelled
|
||||
embed = EmbedTemplate.info(
|
||||
title="Deletion Cancelled",
|
||||
description=f"The command `/cc {self.command.name}` was not deleted."
|
||||
)
|
||||
await interaction.edit_original_response(embed=embed, view=None)
|
||||
await interaction.edit_original_response(content=None, embed=embed, view=None)
|
||||
|
||||
|
||||
class CustomCommandListView(PaginationView):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user