|
|
|
@ -16,7 +16,8 @@ module.exports = {
|
|
|
|
|
async execute(interaction) {
|
|
|
|
|
var abbreviation = interaction.options.getString('abbreviation').toLowerCase();
|
|
|
|
|
//var phrase = interaction.options.getString('phrase');
|
|
|
|
|
if (message.member.roles.cache.some(role => role.name == "Trusted Users")) {
|
|
|
|
|
const user = interaction.options.user;
|
|
|
|
|
if (user.member.roles.cache.some(role => role.name == "Trusted Users")) {
|
|
|
|
|
await interaction.reply('Removing abbreviation `' + abbreviation + "` from the target list...");
|
|
|
|
|
removePhrase(abbreviation);
|
|
|
|
|
} else {
|
|
|
|
|