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 75c8652 commit 94a6fb2
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 @@ -447,10 +447,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 94a6fb2

Please sign in to comment.