Remove view properly
This commit is contained in:
parent
9dad98a914
commit
571a12d329
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user