From aaca29ebcbfd1627d3bb907da36b3ce1b4702b43 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Thu, 25 May 2023 21:30:08 -0500 Subject: [PATCH] add protections into command --- commands/removePhrase.cjs | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/removePhrase.cjs b/commands/removePhrase.cjs index 764faa4..48baeee 100644 --- a/commands/removePhrase.cjs +++ b/commands/removePhrase.cjs @@ -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);