mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Add delete button
This commit is contained in:
parent
f7a832ac12
commit
6db495139b
1 changed files with 10 additions and 0 deletions
|
@ -1078,6 +1078,16 @@ class OtherCog(commands.Cog):
|
|||
else:
|
||||
return await interaction.edit_original_response(content=new_result)
|
||||
|
||||
@discord.ui.button(
|
||||
label="Delete",
|
||||
style=discord.ButtonStyle.red,
|
||||
emoji="\N{wastebasket}\U0000fe0f"
|
||||
)
|
||||
async def delete(self, _, interaction: discord.Interaction):
|
||||
await interaction.response.defer()
|
||||
await interaction.delete_original_response()
|
||||
self.stop()
|
||||
|
||||
await ctx.defer()
|
||||
result = await get_quote()
|
||||
if isinstance(result, discord.File):
|
||||
|
|
Loading…
Reference in a new issue