Formattiong

imgbot
kieranrobson 2022-05-13 21:03:50 +01:00
parent 79d97fe038
commit 5102499b6c
1 changed files with 95 additions and 2 deletions

View File

@ -80,8 +80,100 @@ client.on("interactionCreate", async (interaction) => {
}
if(interaction.isSelectMenu()) {
if(interaction.customId == "pronounSelect")
if(interaction.customId == "yearSelect")
{
if(interaction.values.includes("0"))
{
interaction.member.roles.add("974754114296741948") // Add Foundation
interaction.member.roles.remove("441276956089122836") // Remove First Year
interaction.member.roles.remove("441276979514441741") // Remove Second Year
interaction.member.roles.remove("441277048003100684") // Remove Year In Industry Year
interaction.member.roles.remove("441277001744121856") // Remove Third Year
interaction.member.roles.remove("441277023873138743") // Remove Masters Year
interaction.member.roles.remove("460435898660683778") // Remove PhD Year
interaction.member.roles.remove("441277481488613386") // Remove Graduate Year
}
else if(interaction.values.includes("1"))
{
interaction.member.roles.add("441276956089122836") // Add First Year
interaction.member.roles.remove("974754114296741948") // Remove Foundation Year
interaction.member.roles.remove("441276979514441741") // Remove Second Year
interaction.member.roles.remove("441277048003100684") // Remove Year In Industry Year
interaction.member.roles.remove("441277001744121856") // Remove Third Year
interaction.member.roles.remove("441277023873138743") // Remove Masters Year
interaction.member.roles.remove("460435898660683778") // Remove PhD Year
interaction.member.roles.remove("441277481488613386") // Remove Graduate Year
}
else if(interaction.values.includes("2"))
{
interaction.member.roles.add("441276979514441741") // Add Second Year
interaction.member.roles.remove("974754114296741948") // Remove Foundation Year
interaction.member.roles.remove("441276956089122836") // Remove First Year
interaction.member.roles.remove("441277048003100684") // Remove Year In Industry Year
interaction.member.roles.remove("441277001744121856") // Remove Third Year
interaction.member.roles.remove("441277023873138743") // Remove Masters Year
interaction.member.roles.remove("460435898660683778") // Remove PhD Year
interaction.member.roles.remove("441277481488613386") // Remove Graduate Year
}
else if(interaction.values.includes("3"))
{
interaction.member.roles.add("441277048003100684") // Add Year In Industry Year
interaction.member.roles.remove("974754114296741948") // Remove Foundation Year
interaction.member.roles.remove("441276956089122836") // Remove First Year
interaction.member.roles.remove("441276979514441741") // Remove Second Year
interaction.member.roles.remove("441277001744121856") // Remove Third Year
interaction.member.roles.remove("441277023873138743") // Remove Masters Year
interaction.member.roles.remove("460435898660683778") // Remove PhD Year
interaction.member.roles.remove("441277481488613386") // Remove Graduate Year
}
else if(interaction.values.includes("4"))
{
interaction.member.roles.add("441277001744121856") // Add Third Year
interaction.member.roles.remove("974754114296741948") // Remove Foundation Year
interaction.member.roles.remove("441276956089122836") // Remove First Year
interaction.member.roles.remove("441276979514441741") // Remove Second Year
interaction.member.roles.remove("441277048003100684") // Remove Year In Industry Year
interaction.member.roles.remove("441277023873138743") // Remove Masters Year
interaction.member.roles.remove("460435898660683778") // Remove PhD Year
interaction.member.roles.remove("441277481488613386") // Remove Graduate Year
}
else if(interaction.values.includes("5"))
{
interaction.member.roles.add("441277023873138743") // Add Masters Year
interaction.member.roles.remove("974754114296741948") // Remove Foundation Year
interaction.member.roles.remove("441276956089122836") // Remove First Year
interaction.member.roles.remove("441276979514441741") // Remove Second Year
interaction.member.roles.remove("441277048003100684") // Remove Year In Industry Year
interaction.member.roles.remove("441277001744121856") // Remove Third Year
interaction.member.roles.remove("460435898660683778") // Remove PhD Year
interaction.member.roles.remove("441277481488613386") // Remove Graduate Year
}
else if(interaction.values.includes("6"))
{
interaction.member.roles.add("460435898660683778") // Add PhD Year
interaction.member.roles.remove("974754114296741948") // Remove Foundation Year
interaction.member.roles.remove("441276956089122836") // Remove First Year
interaction.member.roles.remove("441276979514441741") // Remove Second Year
interaction.member.roles.remove("441277048003100684") // Remove Year In Industry Year
interaction.member.roles.remove("441277001744121856") // Remove Third Year
interaction.member.roles.remove("441277023873138743") // Remove Masters Year
interaction.member.roles.remove("441277481488613386") // Remove Graduate Year
}
else if(interaction.values.includes("7"))
{
interaction.member.roles.add("441277481488613386") // Add Graduate Year
interaction.member.roles.remove("974754114296741948") // Remove Foundation Year
interaction.member.roles.remove("441276956089122836") // Remove First Year
interaction.member.roles.remove("441276979514441741") // Remove Second Year
interaction.member.roles.remove("441277048003100684") // Remove Year In Industry Year
interaction.member.roles.remove("441277001744121856") // Remove Third Year
interaction.member.roles.remove("441277023873138743") // Remove Masters Year
interaction.member.roles.remove("460435898660683778") // Remove PhD Year
}
if(interaction.customId == "pronounSelect")
{
if(interaction.values.includes("HeHim"))
{ interaction.member.roles.add("851148987271479385")} // Add Foundation
else{interaction.member.roles.remove("851148987271479385")} // Remove First Year
@ -106,12 +198,13 @@ client.on("interactionCreate", async (interaction) => {
{ interaction.member.roles.add("851149407050137631")}
else{interaction.member.roles.remove("851149407050137631")}
if(interaction.values.includes("Ask"))
{ interaction.member.roles.add("851149443738107934")}
else{interaction.member.roles.remove("851149443738107934")}
}
await interaction.reply({ content: 'Roles have been updated', ephemeral: true});
}
}
})