|
|
|
@ -17,6 +17,7 @@ module.exports = {
|
|
|
|
|
var abbreviation = interaction.options.getString('abbreviation').toLowerCase();
|
|
|
|
|
//var phrase = interaction.options.getString('phrase');
|
|
|
|
|
const user = interaction.options.user;
|
|
|
|
|
console.log("Command executed by " + interaction.member)
|
|
|
|
|
if (user.member.roles.cache.some(role => role.name == "Trusted Users")) {
|
|
|
|
|
await interaction.reply('Removing abbreviation `' + abbreviation + "` from the target list...");
|
|
|
|
|
removePhrase(abbreviation);
|
|
|
|
|