Remove view properly

This commit is contained in:
Parker M. 2025-01-22 16:03:40 -06:00
parent 9dad98a914
commit 571a12d329
Signed by: parker
GPG Key ID: 505ED36FC12B5D5E

View File

@ -148,7 +148,8 @@ class RequestButtonView(discord.ui.View):
),
color=0xD01B86,
)
await interaction.response.send_message(embed=embed, view=None)
await interaction.response.edit_message(view=None)
await interaction.followup.send(embed=embed)
# Alert the user that the content failed to be added
else:
embed = discord.Embed(
@ -159,9 +160,8 @@ class RequestButtonView(discord.ui.View):
f" {self.service} library."
),
)
return await interaction.response.edit_message(
embed=embed, view=None
)
await interaction.delete_original_response()
return await interaction.response.edit_message(embed=embed)
# Keep track of the requests for the `/status` command
with Session() as session: