Skip to content

Commit

Permalink
fix music player buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Oct 17, 2022
1 parent d72ad66 commit 563cd4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dbot/commands/music_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import (

func getMusicControllerComponents(track lavalink.AudioTrack) discord.ContainerComponent {
buttons := discord.ActionRowComponent{
discord.NewPrimaryButton("", "now-playing:previous").WithEmoji(discord.ComponentEmoji{Name: "⏮"}),
discord.NewPrimaryButton("", "now-playing:play-pause").WithEmoji(discord.ComponentEmoji{Name: "⏯"}),
discord.NewPrimaryButton("", "now-playing:next").WithEmoji(discord.ComponentEmoji{Name: "⏭"}),
discord.NewPrimaryButton("", "handler:previous").WithEmoji(discord.ComponentEmoji{Name: "⏮"}),
discord.NewPrimaryButton("", "handler:play-pause").WithEmoji(discord.ComponentEmoji{Name: "⏯"}),
discord.NewPrimaryButton("", "handler:next").WithEmoji(discord.ComponentEmoji{Name: "⏭"}),
}
if track != nil {
buttons = buttons.AddComponents(discord.NewPrimaryButton("", "now-playing:like").WithEmoji(discord.ComponentEmoji{Name: "❤"}))
buttons = buttons.AddComponents(discord.NewPrimaryButton("", "handler:like").WithEmoji(discord.ComponentEmoji{Name: "❤"}))
}
return buttons
}
Expand Down

0 comments on commit 563cd4e

Please sign in to comment.