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

57 lines
1.3 KiB
JavaScript
Raw Normal View History

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: "pronouns",
aliases: [''],
/**
*
* @param {Client} client
* @param {Message} message
* @param {String[]} args
*/
run: async (client, message, args) => {
const row2 = new MessageActionRow()
.addComponents(
new MessageSelectMenu()
.setCustomId("pronounSelect")
.setPlaceholder("Select your pronouns")
.setMinValues(0)
.setMaxValues(7)
.addOptions([
{
label:"He/Him",
value:"HeHim",
},
{
label:"He/They",
value:"HeThey",
},
{
label:"She/Her",
value:"SheHer",
},
{
label:"She/They",
value:"SheThey",
},
{
label:"They/Them",
value:"TheyThem",
},
{
label:"Any Pronouns",
value:"Any",
},
{
label:"Ask My Pronouns",
value:"Ask",
},
])
)
message.channel.send({content: "Select your pronouns.", components:[row2]})
}
}