From 9e8eda39e6307adae68f1a042f4beedd902d6d36 Mon Sep 17 00:00:00 2001 From: Kieran Date: Sat, 22 Oct 2022 18:51:39 +0100 Subject: [PATCH] feat: Add events ping to misc roles, rm course rep --- src/commands/roleselections/misc.js | 6 +++--- src/events/interactionCreate.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commands/roleselections/misc.js b/src/commands/roleselections/misc.js index d593a54..de548f8 100644 --- a/src/commands/roleselections/misc.js +++ b/src/commands/roleselections/misc.js @@ -18,9 +18,9 @@ module.exports = { .setMaxValues(2) .addOptions([ { - label: 'Course Rep', - description: 'Get access to the course rep channel', - value: 'courserep', + label: 'Events Ping', + description: 'Get notified of events!', + value: 'events', }, { label: 'CourseWork Help Ping', diff --git a/src/events/interactionCreate.js b/src/events/interactionCreate.js index dec4365..b2c4539 100644 --- a/src/events/interactionCreate.js +++ b/src/events/interactionCreate.js @@ -257,10 +257,10 @@ client.on('interactionCreate', async (interaction) => { } if (interaction.customId == 'miscSelect') { - if (interaction.values.includes('courserep')) { - interaction.member.roles.add('493738161713709077'); + if (interaction.values.includes('events')) { + interaction.member.roles.add('1033061119625023559'); } else { - interaction.member.roles.remove('493738161713709077'); + interaction.member.roles.remove('1033061119625023559'); } if (interaction.values.includes('ACWPing')) {