Removed controls

This commit is contained in:
2022-11-13 16:07:01 +01:00
parent ffb7dc999f
commit 765b23e8fe
3 changed files with 2 additions and 20 deletions
-16
View File
@@ -70,19 +70,3 @@ def create_track_embed(
embed.set_image(url=f"https://i3.ytimg.com/vi/{current.identifier}/mqdefault.jpg")
embed.set_footer(text=f"Uploaded by: {current.author}")
return embed
def create_embed_controls(bot: "TuneBot") -> "EmbedControls":
return EmbedControls(bot)
class EmbedControls(discord.ui.View):
def __init__(self, bot: "TuneBot"):
super().__init__()
self.bot = bot
@discord.ui.button(label="Skip")
async def skip(self, ctx: discord.Interaction, button: discord.ui.Button):
player = helper.get_player(ctx.client, ctx.guild_id)
await player.skip()
await ctx.response.defer()