aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-06-30 15:43:21 +0200
committerV <vendicated@riseup.net>2023-06-30 15:43:21 +0200
commit0936ca29856507891397739a92feced62aba5876 (patch)
tree0c4b5645210cb963b36a7385305919fbebb78704 /src/plugins
parent13bde79ec8c78a471eb9cf3e6e58f404e8f1bd1f (diff)
downloadVencord-0936ca29856507891397739a92feced62aba5876.tar.gz
Vencord-0936ca29856507891397739a92feced62aba5876.tar.bz2
Vencord-0936ca29856507891397739a92feced62aba5876.zip
ValidUser: Fix mentions with ! (<@!...>)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/validUser.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/validUser.tsx b/src/plugins/validUser.tsx
index 69e0f13..a3862d4 100644
--- a/src/plugins/validUser.tsx
+++ b/src/plugins/validUser.tsx
@@ -75,7 +75,7 @@ function MentionWrapper({ data, UserMention, RoleMention, parse, props }: Mentio
const mention = children?.[0]?.props?.children;
if (typeof mention !== "string") return;
- const id = mention.match(/<@(\d+)>/)?.[1];
+ const id = mention.match(/<@!?(\d+)>/)?.[1];
if (!id) return;
if (fetching.has(id))