From b1943418fe163c1f1dfdbbbdbf5298bf50013efb Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Sun, 2 Apr 2023 09:50:54 -0500 Subject: [PATCH] Ignore if user has role "Exempt from NoMoreAcronyms" --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index c140579..8080918 100644 --- a/main.ts +++ b/main.ts @@ -127,7 +127,7 @@ function checkMessage(message) { var rebuildMessageArray = []; //console.log("Corrected Message: " + correctedMessage); if (abbreviationKey.target_phrases[matchMessageArray[i]] !== undefined) { - console.log("Has role? " + message.member.roles.cache.has("1092093109954941078")); + console.log("Has role? " + message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")); if (message.member.roles.cache.has("1092093109954941078")) { message.react('🇵'); message.react('🇴');