diff --git a/redbot/core/utils/views.py b/redbot/core/utils/views.py index cd588cae96b..aff3f11e1ef 100644 --- a/redbot/core/utils/views.py +++ b/redbot/core/utils/views.py @@ -66,9 +66,10 @@ def __init__(self, style: discord.ButtonStyle, emoji: Union[str, discord.Partial async def callback(self, interaction: discord.Interaction): self.view.stop() if interaction.message.flags.ephemeral: - await interaction.response.edit_message(view=None) - return - await interaction.message.delete() + await interaction.response.defer(thinking=False) + await interaction.delete_original_response() + else: + await interaction.message.delete() class SimpleMenu(discord.ui.View): @@ -208,7 +209,7 @@ def author(self, value: Optional[discord.abc.User]) -> None: async def on_timeout(self): try: - if self.delete_after_timeout and not self.message.flags.ephemeral: + if self.delete_after_timeout: await self.message.delete() elif self.disable_after_timeout: for child in self.children: