Skip to content

Commit

Permalink
Add emojis to additional voting dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
BradHacker committed Apr 5, 2024
1 parent d9fe1db commit 1c1beaa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion commands/slash/vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,13 @@ func voteGetVote(s *discordgo.Session, i *discordgo.InteractionCreate, rawOption
CustomID: messageSlug,
Options: func() []discordgo.SelectMenuOption {
var innerOptions []discordgo.SelectMenuOption
for _, option := range options {
for j, option := range options {
innerOptions = append(innerOptions, discordgo.SelectMenuOption{
Label: option,
Value: option,
Emoji: &discordgo.ComponentEmoji{
Name: emojis[j],
},
})
}
return innerOptions
Expand Down

0 comments on commit 1c1beaa

Please sign in to comment.