Skip to content
Snippets Groups Projects
AddRoleToMenu.js 635 B
Newer Older
const { SlashCommandBuilder } = require('@discordjs/builders');

module.exports = new SlashCommandBuilder()
    .setName('add_role_to_menu')
    .setDescription('Add role to a menu.')
    .addChannelOption( option =>
	    option.setName('channel')
            .setDescription('Channel of the menu.')
            .setRequired(true))
    .addStringOption( option =>
        option.setName('message_id')
            .setDescription('Message ID of the menu.')
            .setRequired(true))
    .addRoleOption(option =>
        option.setName('role')
            .setDescription('Role to add to the menu.')
            .setRequired(true))