2
2
SlashCommandBuilder,
3
3
PermissionFlagsBits,
4
4
ActionRowBuilder,
5
- StringSelectMenuBuilder,
6
- StringSelectMenuOptionBuilder
5
+ StringSelectMenuBuilder,
6
+ StringSelectMenuOptionBuilder,
7
7
} = require ( 'discord.js' ) ;
8
8
9
9
module . exports = {
@@ -22,117 +22,117 @@ module.exports = {
22
22
*/
23
23
24
24
run : async ( client , interaction ) => {
25
- const row1 = new ActionRowBuilder ( ) . addComponents (
25
+ const row1 = new ActionRowBuilder ( ) . addComponents (
26
26
new StringSelectMenuBuilder ( )
27
27
. setCustomId ( 'yearSelect' )
28
28
. setPlaceholder ( 'Select your current year' )
29
29
. addOptions (
30
- new StringSelectMenuOptionBuilder ( )
31
- . setLabel ( 'Foundation' )
32
- . setValue ( '0' ) ,
33
- new StringSelectMenuOptionBuilder ( )
34
- . setLabel ( 'First Year' )
35
- . setValue ( '1' ) ,
36
- new StringSelectMenuOptionBuilder ( )
37
- . setLabel ( 'Second Year' )
38
- . setValue ( '2' ) ,
39
- new StringSelectMenuOptionBuilder ( )
40
- . setLabel ( 'Year In Industry' )
41
- . setValue ( '3' ) ,
42
- new StringSelectMenuOptionBuilder ( )
43
- . setLabel ( 'Third Year' )
44
- . setValue ( '4' ) ,
45
- new StringSelectMenuOptionBuilder ( )
46
- . setLabel ( 'Masters' )
47
- . setValue ( '5' ) ,
48
- new StringSelectMenuOptionBuilder ( )
49
- . setLabel ( 'PhD' )
50
- . setValue ( '6' ) ,
51
- new StringSelectMenuOptionBuilder ( )
52
- . setLabel ( 'Graduate' )
53
- . setValue ( '7' )
54
- ) )
55
-
56
- const row2 = new ActionRowBuilder ( ) . addComponents (
57
- new StringSelectMenuBuilder ( )
58
- . setCustomId ( 'pronounSelect' )
59
- . setPlaceholder ( 'Select your pronouns' )
60
- . addOptions (
61
- new StringSelectMenuOptionBuilder ( )
62
- . setLabel ( 'He/Him' )
63
- . setValue ( 'HeHim' ) ,
64
- new StringSelectMenuOptionBuilder ( )
65
- . setLabel ( 'He/They' )
66
- . setValue ( 'HeThey' ) ,
67
- new StringSelectMenuOptionBuilder ( )
68
- . setLabel ( 'She/Her' )
69
- . setValue ( 'SheHers' ) ,
70
- new StringSelectMenuOptionBuilder ( )
71
- . setLabel ( 'She/They' )
72
- . setValue ( 'SheThey' ) ,
73
- new StringSelectMenuOptionBuilder ( )
74
- . setLabel ( 'They/Them' )
75
- . setValue ( 'TheyThem' ) ,
76
- new StringSelectMenuOptionBuilder ( )
77
- . setLabel ( 'Ask My Pronouns' )
78
- . setValue ( 'Ask' ) ,
79
- new StringSelectMenuOptionBuilder ( )
80
- . setLabel ( 'Any Pronouns' )
81
- . setValue ( 'Any' )
82
- )
83
- )
84
-
85
- const row3 = new ActionRowBuilder ( ) . addComponents (
86
- new StringSelectMenuBuilder ( )
87
- . setCustomId ( 'bcsSelect' )
88
- . setPlaceholder ( 'Select your BCS status' )
89
- . addOptions (
90
- new StringSelectMenuOptionBuilder ( )
91
- . setLabel ( 'Student Member' )
92
- . setValue ( 'bcsStudent' ) ,
93
- new StringSelectMenuOptionBuilder ( )
94
- . setLabel ( 'Associate Member' )
95
- . setValue ( 'bcsASS' ) ,
96
- new StringSelectMenuOptionBuilder ( )
97
- . setLabel ( 'Professional Member' )
98
- . setValue ( 'bcsProf' ) ,
99
- new StringSelectMenuOptionBuilder ( )
100
- . setLabel ( 'Fellow' )
101
- . setValue ( 'bcsFellow' ) ,
102
- )
103
- )
104
-
105
- const row4 = new ActionRowBuilder ( ) . addComponents (
106
- new StringSelectMenuBuilder ( )
107
- . setCustomId ( 'miscSelect' )
108
- . setPlaceholder ( 'Select your misc roles' )
109
- . setMinValues ( 0 )
110
- . setMaxValues ( 2 )
111
- . addOptions (
112
- new StringSelectMenuOptionBuilder ( )
113
- . setLabel ( 'Events Ping' )
114
- . setDescription ( 'Get notified of events' )
115
- . setValue ( 'events' ) ,
116
- new StringSelectMenuOptionBuilder ( )
117
- . setLabel ( 'Coursework Help Ping' )
118
- . setDescription ( 'Be notified of coursework help within the coursework forum' )
119
- . setValue ( 'ACWPing' ) ,
120
- )
121
- )
122
-
123
-
124
-
125
-
30
+ new StringSelectMenuOptionBuilder ( )
31
+ . setLabel ( 'Foundation' )
32
+ . setValue ( '0' ) ,
33
+ new StringSelectMenuOptionBuilder ( )
34
+ . setLabel ( 'First Year' )
35
+ . setValue ( '1' ) ,
36
+ new StringSelectMenuOptionBuilder ( )
37
+ . setLabel ( 'Second Year' )
38
+ . setValue ( '2' ) ,
39
+ new StringSelectMenuOptionBuilder ( )
40
+ . setLabel ( 'Year In Industry' )
41
+ . setValue ( '3' ) ,
42
+ new StringSelectMenuOptionBuilder ( )
43
+ . setLabel ( 'Third Year' )
44
+ . setValue ( '4' ) ,
45
+ new StringSelectMenuOptionBuilder ( ) . setLabel ( 'Masters' ) . setValue ( '5' ) ,
46
+ new StringSelectMenuOptionBuilder ( ) . setLabel ( 'PhD' ) . setValue ( '6' ) ,
47
+ new StringSelectMenuOptionBuilder ( ) . setLabel ( 'Graduate' ) . setValue ( '7' )
48
+ )
49
+ ) ;
126
50
51
+ const row2 = new ActionRowBuilder ( ) . addComponents (
52
+ new StringSelectMenuBuilder ( )
53
+ . setCustomId ( 'pronounSelect' )
54
+ . setPlaceholder ( 'Select your pronouns' )
55
+ . addOptions (
56
+ new StringSelectMenuOptionBuilder ( )
57
+ . setLabel ( 'He/Him' )
58
+ . setValue ( 'HeHim' ) ,
59
+ new StringSelectMenuOptionBuilder ( )
60
+ . setLabel ( 'He/They' )
61
+ . setValue ( 'HeThey' ) ,
62
+ new StringSelectMenuOptionBuilder ( )
63
+ . setLabel ( 'She/Her' )
64
+ . setValue ( 'SheHers' ) ,
65
+ new StringSelectMenuOptionBuilder ( )
66
+ . setLabel ( 'She/They' )
67
+ . setValue ( 'SheThey' ) ,
68
+ new StringSelectMenuOptionBuilder ( )
69
+ . setLabel ( 'They/Them' )
70
+ . setValue ( 'TheyThem' ) ,
71
+ new StringSelectMenuOptionBuilder ( )
72
+ . setLabel ( 'Ask My Pronouns' )
73
+ . setValue ( 'Ask' ) ,
74
+ new StringSelectMenuOptionBuilder ( )
75
+ . setLabel ( 'Any Pronouns' )
76
+ . setValue ( 'Any' )
77
+ )
78
+ ) ;
127
79
128
-
129
- interaction . channel . send ( { content : 'Select your year.' , components : [ row1 ] } ) ;
130
- interaction . channel . send ( { content : 'Select your pronouns.' , components : [ row2 ] } ) ;
131
- interaction . channel . send ( { content : 'Select your BCS status.' , components : [ row3 ] } ) ;
132
- interaction . channel . send ( { content : 'Select your misc roles.' , components : [ row4 ] } ) ;
80
+ const row3 = new ActionRowBuilder ( ) . addComponents (
81
+ new StringSelectMenuBuilder ( )
82
+ . setCustomId ( 'bcsSelect' )
83
+ . setPlaceholder ( 'Select your BCS status' )
84
+ . addOptions (
85
+ new StringSelectMenuOptionBuilder ( )
86
+ . setLabel ( 'Student Member' )
87
+ . setValue ( 'bcsStudent' ) ,
88
+ new StringSelectMenuOptionBuilder ( )
89
+ . setLabel ( 'Associate Member' )
90
+ . setValue ( 'bcsASS' ) ,
91
+ new StringSelectMenuOptionBuilder ( )
92
+ . setLabel ( 'Professional Member' )
93
+ . setValue ( 'bcsProf' ) ,
94
+ new StringSelectMenuOptionBuilder ( )
95
+ . setLabel ( 'Fellow' )
96
+ . setValue ( 'bcsFellow' )
97
+ )
98
+ ) ;
133
99
134
-
100
+ const row4 = new ActionRowBuilder ( ) . addComponents (
101
+ new StringSelectMenuBuilder ( )
102
+ . setCustomId ( 'miscSelect' )
103
+ . setPlaceholder ( 'Select your misc roles' )
104
+ . setMinValues ( 0 )
105
+ . setMaxValues ( 2 )
106
+ . addOptions (
107
+ new StringSelectMenuOptionBuilder ( )
108
+ . setLabel ( 'Events Ping' )
109
+ . setDescription ( 'Get notified of events' )
110
+ . setValue ( 'events' ) ,
111
+ new StringSelectMenuOptionBuilder ( )
112
+ . setLabel ( 'Coursework Help Ping' )
113
+ . setDescription (
114
+ 'Be notified of coursework help within the coursework forum'
115
+ )
116
+ . setValue ( 'ACWPing' )
117
+ )
118
+ ) ;
135
119
120
+ interaction . channel . send ( {
121
+ content : 'Select your year.' ,
122
+ components : [ row1 ] ,
123
+ } ) ;
124
+ interaction . channel . send ( {
125
+ content : 'Select your pronouns.' ,
126
+ components : [ row2 ] ,
127
+ } ) ;
128
+ interaction . channel . send ( {
129
+ content : 'Select your BCS status.' ,
130
+ components : [ row3 ] ,
131
+ } ) ;
132
+ interaction . channel . send ( {
133
+ content : 'Select your misc roles.' ,
134
+ components : [ row4 ] ,
135
+ } ) ;
136
136
137
137
interaction . reply ( { content : 'Dropdowns sent sent.' , ephemeral : true } ) ;
138
138
} ,
0 commit comments