diff options
Diffstat (limited to 'cogs')
| -rw-r--r-- | cogs/music/play.py | 1 |
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) |
