mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-21 23:37:47 +00:00
Removed controls
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user