hullcss-discord-bot/commands/roleselections/misc.js

41 lines
1.0 KiB
JavaScript
Raw Normal View History

2022-06-01 20:03:01 +01:00
2022-08-26 13:33:00 +01:00
const { Message, Client, MessageActionRow, MessageSelectMenu } = require("discord.js");
2022-06-01 20:03:01 +01:00
module.exports = {
name: "roles",
aliases: [''],
/**
*
* @param {Client} client
* @param {Message} message
* @param {String[]} args
*/
run: async (client, message, args) => {
const row4 = new MessageActionRow()
.addComponents(
new MessageSelectMenu()
.setCustomId("miscSelect")
.setPlaceholder("Select your misc roles")
.setMinValues(0)
.setMaxValues(2)
.addOptions([
{
label:"Course Rep",
description:"Get access to the course rep channel",
value:"courserep",
},
{
label:"CourseWork Help Ping",
description:"If you want to help out within our coursework-help channel",
value:"ACWPing",
},
])
)
message.channel.send({content: "Select your Misc roles", components:[row4]})
},
};