Newer
Older
const {SlashCommandBuilder} = require('@discordjs/builders');
const locale = require('../util/locale');
module.exports = (loc) => {
const commandLocale = locale.get(loc).slashCommands.edit_collection;
return new SlashCommandBuilder()
.setName('edit_collection')
.setDescription(commandLocale.description)
.addChannelOption((option) =>
option.setName('collection_category')
.setDescription(commandLocale.collectionCategoryDescription)
.setRequired(true))
.addStringOption((option) =>
option.setName('name')
.setDescription(commandLocale.nameDescription));
}