@@ -74,10 +74,10 @@ func reportConfirmHandler(b *dbot.Bot) handler.ComponentHandler {
7474 })
7575 }
7676
77- var selectMenuOptions []discord.SelectMenuOption
77+ var selectMenuOptions []discord.StringSelectMenuOption
7878
7979 if reportCount > 0 {
80- selectMenuOptions = append (selectMenuOptions , discord.SelectMenuOption {
80+ selectMenuOptions = append (selectMenuOptions , discord.StringSelectMenuOption {
8181 Label : "Show Previous Reports" ,
8282 Value : "show-reports" ,
8383 Emoji : & discord.ComponentEmoji {
@@ -87,7 +87,7 @@ func reportConfirmHandler(b *dbot.Bot) handler.ComponentHandler {
8787 }
8888
8989 if report .MessageID != "0" && report .ChannelID != "0" {
90- selectMenuOptions = append (selectMenuOptions , discord.SelectMenuOption {
90+ selectMenuOptions = append (selectMenuOptions , discord.StringSelectMenuOption {
9191 Label : "Delete Message" ,
9292 Value : "delete-message" ,
9393 Emoji : & discord.ComponentEmoji {
@@ -96,7 +96,7 @@ func reportConfirmHandler(b *dbot.Bot) handler.ComponentHandler {
9696 })
9797 }
9898
99- selectMenuOptions = append (selectMenuOptions , []discord.SelectMenuOption {
99+ selectMenuOptions = append (selectMenuOptions , []discord.StringSelectMenuOption {
100100 {
101101 Label : "Delete Report" ,
102102 Value : "delete-report" ,
@@ -130,7 +130,7 @@ func reportConfirmHandler(b *dbot.Bot) handler.ComponentHandler {
130130 return e .UpdateMessage (discord.MessageUpdate {
131131 Components : & []discord.ContainerComponent {
132132 discord.ActionRowComponent {
133- discord.SelectMenuComponent {
133+ discord.StringSelectMenuComponent {
134134 CustomID : fmt .Sprintf ("handler:report-action:%d" , reportID ),
135135 Placeholder : "Select an action" ,
136136 MinValues : json .Ptr (1 ),
@@ -198,7 +198,7 @@ func reportActionHandler(b *dbot.Bot) handler.ComponentHandler {
198198 reason := fmt .Sprintf ("AutoMod action by: %s\n Caused by report #%d" , e .User ().Tag (), reportID )
199199
200200 var content string
201- value := e .SelectMenuInteractionData ().Values [0 ]
201+ value := e .StringSelectMenuInteractionData ().Values [0 ]
202202 switch value {
203203 case "delete-message" :
204204 if err = b .Client .Rest ().DeleteMessage (snowflake .MustParse (report .ChannelID ), snowflake .MustParse (report .MessageID ), rest .WithReason (reason )); err != nil {
0 commit comments