Skip to content

Commit 1ffb82e

Browse files
committed
fix: Fix 8ball command
1 parent 76c6634 commit 1ffb82e

File tree

2 files changed

+112
-112
lines changed

2 files changed

+112
-112
lines changed

src/slashCommands/embeds-dropdowns/roleselection.js

+105-105
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const {
22
SlashCommandBuilder,
33
PermissionFlagsBits,
44
ActionRowBuilder,
5-
StringSelectMenuBuilder,
6-
StringSelectMenuOptionBuilder
5+
StringSelectMenuBuilder,
6+
StringSelectMenuOptionBuilder,
77
} = require('discord.js');
88

99
module.exports = {
@@ -22,117 +22,117 @@ module.exports = {
2222
*/
2323

2424
run: async (client, interaction) => {
25-
const row1 = new ActionRowBuilder().addComponents(
25+
const row1 = new ActionRowBuilder().addComponents(
2626
new StringSelectMenuBuilder()
2727
.setCustomId('yearSelect')
2828
.setPlaceholder('Select your current year')
2929
.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+
);
12650

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+
);
12779

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+
);
13399

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+
);
135119

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+
});
136136

137137
interaction.reply({ content: 'Dropdowns sent sent.', ephemeral: true });
138138
},

src/slashCommands/fun/8ball.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { MessageEmbed } = require('discord.js');
1+
const { EmbedBuilder } = require('discord.js');
22
const { SlashCommandBuilder } = require('@discordjs/builders');
33

44
module.exports = {
@@ -24,15 +24,15 @@ module.exports = {
2424

2525
const Responses = ['Yes', 'No', 'Maybe', 'It is likely', 'It is unlikely'];
2626

27-
const embed = new MessageEmbed()
28-
.setColor('GREEN')
27+
const embed = new EmbedBuilder()
28+
.setColor(0x3fb618)
2929
.setFooter({ text: `Called By: ${interaction.user.tag}` })
3030
.setTimestamp()
3131
.setTitle('8ball')
32-
.addField(
33-
`${questionToSend}`,
34-
`${Responses[Math.floor(Math.random() * Responses.length)]}`
35-
);
32+
.addFields({
33+
name: `${questionToSend}`,
34+
value: `${Responses[Math.floor(Math.random() * Responses.length)]}`,
35+
});
3636
interaction.reply({ embeds: [embed] });
3737
},
3838
};

0 commit comments

Comments
 (0)