From becd247715282f0c15ba3c38e6096cfe4d58675d Mon Sep 17 00:00:00 2001
From: Caleb Fontenot <foley2431@gmail.com>
Date: Thu, 25 May 2023 21:32:07 -0500
Subject: [PATCH] add protections into command

---
 commands/removePhrase.cjs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/commands/removePhrase.cjs b/commands/removePhrase.cjs
index 48baeee..7699af5 100644
--- a/commands/removePhrase.cjs
+++ b/commands/removePhrase.cjs
@@ -16,9 +16,10 @@ module.exports = {
 	async execute(interaction) {
 		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")) {
+		//(user.member.roles.cache.some(role => role.name == "Trusted Users")) 
+		if (interaction.member == "294976590658666497")
+		{
 			await interaction.reply('Removing abbreviation `' + abbreviation + "` from the target list...");
 			removePhrase(abbreviation);
 		} else {