feat: Add events ping to misc roles, rm course rep

imgbot
Kieran 2022-10-22 18:51:39 +01:00
parent 448a0f9296
commit 9e8eda39e6
2 changed files with 6 additions and 6 deletions

View File

@ -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',

View File

@ -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')) {