Ignore if user has role "Exempt from NoMoreAcronyms"

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-02 09:51:36 +07:00
parent 1e11748221
commit 6317a9a12e
1 changed files with 1 additions and 1 deletions

@ -128,7 +128,7 @@ function checkMessage(message) {
//console.log("Corrected Message: " + correctedMessage);
if (abbreviationKey.target_phrases[matchMessageArray[i]] !== undefined) {
console.log("Has role? " + message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms"));
if (message.member.roles.cache.has("1092093109954941078")) {
if (message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) {
message.react('🇵');
message.react('🇴');
message.react('🇬');