@@ -47,7 +47,7 @@ export default {
4747 }
4848 }
4949
50- if ( interaction . isStringSelectMenu ( ) ) {
50+ if ( interaction . isAnySelectMenu ( ) ) {
5151 const selectMenu = client . selectMenus . get ( interaction . customId ) ;
5252 if ( ! selectMenu ) return ;
5353 try {
@@ -57,6 +57,61 @@ export default {
5757 console . log ( error ) ;
5858 }
5959 }
60+
61+ if ( interaction . isStringSelectMenu ( ) ) {
62+ const stringSelectMenu = client . stringSelectMenus . get ( interaction . customId ) ;
63+ if ( ! stringSelectMenu ) return ;
64+ try {
65+ stringSelectMenu . execute ( client , interaction ) ;
66+ } catch ( error ) {
67+ interaction . reply ( { content : 'There was an error while executing this select menu!' , ephemeral : true } ) ;
68+ console . log ( error ) ;
69+ }
70+ }
71+
72+ if ( interaction . isChannelSelectMenu ( ) ) {
73+ const channelSelectMenu = client . channelSelectMenus . get ( interaction . customId ) ;
74+ if ( ! channelSelectMenu ) return ;
75+ try {
76+ channelSelectMenu . execute ( client , interaction ) ;
77+ } catch ( error ) {
78+ interaction . reply ( { content : 'There was an error while executing this select menu!' , ephemeral : true } ) ;
79+ console . log ( error ) ;
80+ }
81+ }
82+
83+ if ( interaction . isMentionableSelectMenu ( ) ) {
84+ const mentionableSelectMenu = client . mentionableSelectMenus . get ( interaction . customId ) ;
85+ if ( ! mentionableSelectMenu ) return ;
86+ try {
87+ mentionableSelectMenu . execute ( client , interaction ) ;
88+ } catch ( error ) {
89+ interaction . reply ( { content : 'There was an error while executing this select menu!' , ephemeral : true } ) ;
90+ console . log ( error ) ;
91+ }
92+ }
93+
94+ if ( interaction . isRoleSelectMenu ( ) ) {
95+ const roleSelectMenu = client . roleSelectMenus . get ( interaction . customId ) ;
96+ if ( ! roleSelectMenu ) return ;
97+ try {
98+ roleSelectMenu . execute ( client , interaction ) ;
99+ } catch ( error ) {
100+ interaction . reply ( { content : 'There was an error while executing this select menu!' , ephemeral : true } ) ;
101+ console . log ( error ) ;
102+ }
103+ }
104+
105+ if ( interaction . isUserSelectMenu ( ) ) {
106+ const userSelectMenu = client . userSelectMenus . get ( interaction . customId ) ;
107+ if ( ! userSelectMenu ) return ;
108+ try {
109+ userSelectMenu . execute ( client , interaction ) ;
110+ } catch ( error ) {
111+ interaction . reply ( { content : 'There was an error while executing this select menu!' , ephemeral : true } ) ;
112+ console . log ( error ) ;
113+ }
114+ }
60115
61116 } catch ( error ) {
62117 return console . log ( error ) ;
0 commit comments