aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music
diff options
context:
space:
mode:
authorsalmonik <raisersoft@proton.me>2025-09-26 15:59:42 +0200
committersalmonik <raisersoft@proton.me>2025-09-26 15:59:42 +0200
commit19216ed85572482b0be8682e776ae86d738b138c (patch)
tree10352d0795c586b1fbdcea0934680ee57afabbe0 /cogs/music
parentimprove searching algorithm (diff)
downloadsenator-sperma-19216ed85572482b0be8682e776ae86d738b138c.tar.gz
senator-sperma-19216ed85572482b0be8682e776ae86d738b138c.zip
delete embed after choosing
Diffstat (limited to '')
-rw-r--r--cogs/music/play.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cogs/music/play.py b/cogs/music/play.py
index b7d409d..be21702 100644
--- a/cogs/music/play.py
+++ b/cogs/music/play.py
@@ -39,6 +39,7 @@ class Play(commands.Cog):
39 embed.add_field(name=f"{i}. {filename}", value="\u200b", inline=False) 39 embed.add_field(name=f"{i}. {filename}", value="\u200b", inline=False)
40 button = discord.ui.Button(label=f"Play {i}") 40 button = discord.ui.Button(label=f"Play {i}")
41 async def button_callback(interaction: discord.Interaction, candidate=candidate): 41 async def button_callback(interaction: discord.Interaction, candidate=candidate):
42 await ctx.interaction.delete_original_response()
42 await play_utils.PlayUtils(self.bot).play(ctx, candidate) 43 await play_utils.PlayUtils(self.bot).play(ctx, candidate)
43 button.callback = button_callback 44 button.callback = button_callback
44 view.add_item(button) 45 view.add_item(button)