summary refs log tree commit diff homepage
path: root/src/Discord.ts
diff options
context:
space:
mode:
authordestruc7i0n <destruc7i0n@users.noreply.github.com>2022-01-03 16:08:32 -0500
committerdestruc7i0n <destruc7i0n@users.noreply.github.com>2022-01-03 16:08:32 -0500
commit3b0306b0f09d79426c117784092701e1a4d8133c (patch)
tree85d687f92776eaeb224bc30fac00eec304e858ef /src/Discord.ts
parentadded debug for webhook ratelimit (diff)
downloadshulker-3b0306b0f09d79426c117784092701e1a4d8133c.tar.gz
shulker-3b0306b0f09d79426c117784092701e1a4d8133c.zip
added tests
Diffstat (limited to '')
-rw-r--r--src/Discord.ts16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/Discord.ts b/src/Discord.ts
index 1245145..110ce64 100644
--- a/src/Discord.ts
+++ b/src/Discord.ts
@@ -190,17 +190,15 @@ class Discord {
             }
           }
         }
-
-        if (['here', 'everyone'].includes(username)) {
-          // remove these large pings
-          if (!this.config.ALLOW_HERE_EVERYONE_MENTIONS) {
-            message = message
-              .replace('@everyone', '@ everyone')
-              .replace('@here', '@ here')
-          }
-        }
       }
     }
+
+    if (!this.config.ALLOW_HERE_EVERYONE_MENTIONS) {
+      message = message
+        .replace('@everyone', '@ everyone')
+        .replace('@here', '@ here')
+    }
+
     return message
   }
 
e. The illustrations are very nice though. 2024-06-09Add photos from May 31June McEnroe 2024-06-09Use monospace on photo pagesJune McEnroe 2024-06-09Put lens and (future) film at the tops of photo pagesJune McEnroe 2024-05-22Remove use of sysexits.hJune McEnroe 2024-05-22Add photo descriptions from 05-03 and 05-06June McEnroe 2024-05-21Fix = precedence in whenJune McEnroe