99 ActionRowBuilder ,
1010 ButtonBuilder ,
1111 createComponentBuilder ,
12- SelectMenuBuilder ,
13- SelectMenuOptionBuilder ,
12+ StringSelectMenuBuilder ,
13+ StringSelectMenuOptionBuilder ,
1414} from '../../src/index.js' ;
1515
1616const rowWithButtonData : APIActionRowComponent < APIMessageActionRowComponent > = {
@@ -29,7 +29,7 @@ const rowWithSelectMenuData: APIActionRowComponent<APIMessageActionRowComponent>
2929 type : ComponentType . ActionRow ,
3030 components : [
3131 {
32- type : ComponentType . SelectMenu ,
32+ type : ComponentType . StringSelect ,
3333 custom_id : '1234' ,
3434 options : [
3535 {
@@ -73,7 +73,7 @@ describe('Action Row Components', () => {
7373 url : 'https://google.com' ,
7474 } ,
7575 {
76- type : ComponentType . SelectMenu ,
76+ type : ComponentType . StringSelect ,
7777 placeholder : 'test' ,
7878 custom_id : 'test' ,
7979 options : [
@@ -108,7 +108,7 @@ describe('Action Row Components', () => {
108108 type : ComponentType . ActionRow ,
109109 components : [
110110 {
111- type : ComponentType . SelectMenu ,
111+ type : ComponentType . StringSelect ,
112112 custom_id : '1234' ,
113113 options : [
114114 {
@@ -134,17 +134,17 @@ describe('Action Row Components', () => {
134134
135135 test ( 'GIVEN valid builder options THEN valid JSON output is given 2' , ( ) => {
136136 const button = new ButtonBuilder ( ) . setLabel ( 'test' ) . setStyle ( ButtonStyle . Primary ) . setCustomId ( '123' ) ;
137- const selectMenu = new SelectMenuBuilder ( )
137+ const selectMenu = new StringSelectMenuBuilder ( )
138138 . setCustomId ( '1234' )
139139 . setMaxValues ( 10 )
140140 . setMinValues ( 12 )
141141 . setOptions (
142- new SelectMenuOptionBuilder ( ) . setLabel ( 'one' ) . setValue ( 'one' ) ,
143- new SelectMenuOptionBuilder ( ) . setLabel ( 'two' ) . setValue ( 'two' ) ,
142+ new StringSelectMenuOptionBuilder ( ) . setLabel ( 'one' ) . setValue ( 'one' ) ,
143+ new StringSelectMenuOptionBuilder ( ) . setLabel ( 'two' ) . setValue ( 'two' ) ,
144144 )
145145 . setOptions ( [
146- new SelectMenuOptionBuilder ( ) . setLabel ( 'one' ) . setValue ( 'one' ) ,
147- new SelectMenuOptionBuilder ( ) . setLabel ( 'two' ) . setValue ( 'two' ) ,
146+ new StringSelectMenuOptionBuilder ( ) . setLabel ( 'one' ) . setValue ( 'one' ) ,
147+ new StringSelectMenuOptionBuilder ( ) . setLabel ( 'two' ) . setValue ( 'two' ) ,
148148 ] ) ;
149149
150150 expect ( new ActionRowBuilder ( ) . addComponents ( button ) . toJSON ( ) ) . toEqual ( rowWithButtonData ) ;
0 commit comments