feat: Add events ping to misc roles, rm course rep
parent
448a0f9296
commit
9e8eda39e6
|
@ -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',
|
||||
|
|
|
@ -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')) {
|
||||
|
|
Loading…
Reference in New Issue