Added foundation, first and second role menu
parent
32abeecf02
commit
8cb454df70
|
@ -33,21 +33,25 @@ module.exports = {
|
|||
value:"2",
|
||||
},
|
||||
{
|
||||
label:"Third Year",
|
||||
label:"Year In Industry",
|
||||
value:"3",
|
||||
},
|
||||
{
|
||||
label:"Masters",
|
||||
label:"Third Year",
|
||||
value:"4",
|
||||
},
|
||||
{
|
||||
label:"PhD",
|
||||
label:"Masters",
|
||||
value:"5",
|
||||
},
|
||||
{
|
||||
label:"Graduate",
|
||||
label:"PhD",
|
||||
value:"6",
|
||||
},
|
||||
{
|
||||
label:"Graduate",
|
||||
value:"7",
|
||||
},
|
||||
])
|
||||
)
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ client.on("interactionCreate", async (interaction) => {
|
|||
else if(interaction.values.includes("1"))
|
||||
{
|
||||
interaction.member.roles.add("441276956089122836") // Add First Year
|
||||
interaction.member.roles.remove("441276956089122836") // Remove Foundation 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
|
||||
|
@ -104,9 +104,21 @@ client.on("interactionCreate", async (interaction) => {
|
|||
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
|
||||
}
|
||||
|
||||
|
||||
|
||||
await interaction.reply({ content: 'Roles have been updated', ephemeral: true});
|
||||
}
|
||||
}
|
||||
})
|
Loading…
Reference in New Issue