Ignore if user has role "Exempt from NoMoreAcronyms"

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-02 09:50:54 -05:00
parent c34e227ac2
commit b1943418fe

View File

@ -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('🇴');