From 76915200ab60ccf2b825358970faeb41e0243665 Mon Sep 17 00:00:00 2001 From: kieranrobson Date: Fri, 13 May 2022 21:53:48 +0100 Subject: [PATCH] Added misc role --- events/interactionCreate.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/events/interactionCreate.js b/events/interactionCreate.js index 1f48def..de263c7 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -239,6 +239,18 @@ client.on("interactionCreate", async (interaction) => { interaction.member.roles.remove("891422669575184436") // Remove Prof } } + + if(interaction.customId == "miscSelect") + { + if(interaction.values.includes("courserep")) + { interaction.member.roles.add("493738161713709077")} + else{interaction.member.roles.remove("493738161713709077")} + + if(interaction.values.includes("ACWPing")) + { interaction.member.roles.add("904354161561309184")} + else{interaction.member.roles.remove("904354161561309184")} + } + await interaction.reply({ content: 'Roles have been updated', ephemeral: true}); } }); \ No newline at end of file