interaction.reply(`Successfully removed \`${word}\` from the database.`)
},
//view: ()=>interaction.reply({content: 'Here is a complete list of banned words!\n*You can open it with a web browser, e.g Chrome/Firefox/Safari, or you can use Visual Studio Code/Notepad++*', files: ['src/database/bannedWords.json'], ephemeral: true})
}asany)[interaction.options.getSubcommand()]();
},
data: newSlashCommandBuilder()
.setName('bannedwords')
.setDescription('description placeholder')/*
.addSubcommand((opt)=>opt
.setName('view')
.setDescription('View the list of currently banned words.'))*/
.addSubcommand((opt)=>opt
.setName('add')
.setDescription('What word do you want to add?')
.addStringOption((optt)=>optt
.setName('word')
.setDescription('Add the specific word to automod\'s bannedWords database.')
.setRequired(true)))
.addSubcommand((opt)=>opt
.setName('remove')
.setDescription('What word do you want to remove?')
.addStringOption((optt)=>optt
.setName('word')
.setDescription('Remove the specific word from automod\'s bannedWords list.')