summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorZachery Notz <zachery_notz@enigma.mil>2020-05-23 19:31:24 -0700
committerZachery Notz <zachery_notz@enigma.mil>2020-05-23 19:31:24 -0700
commit1a69fea1b06215ecc0939c743b5157c09f0d8734 (patch)
tree9a9863d99bc349a93cce41678e9a01585f42a2f7
parentImproved regex so that TELLRAW templates can use variables more than once (diff)
downloadshulker-1a69fea1b06215ecc0939c743b5157c09f0d8734.tar.gz
shulker-1a69fea1b06215ecc0939c743b5157c09f0d8734.zip
Fixed user mention detection
Diffstat (limited to '')
-rw-r--r--src/Discord.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Discord.ts b/src/Discord.ts
index c9b3b74..ffdd05b 100644
--- a/src/Discord.ts
+++ b/src/Discord.ts
@@ -146,7 +146,7 @@ class Discord {
   }
 
   private replaceDiscordMentions(message: string): string {
-    const possibleMentions = message.match(/@(\S+)/gim)
+    const possibleMentions = message.match(/@*.*#[0-9]{4}/gim)
     if (possibleMentions) {
       for (let mention of possibleMentions) {
         const mentionParts = mention.split('#')