ValidUser: Fix mentions with ! (<@!...>)
This commit is contained in:
parent
13bde79ec8
commit
0936ca2985
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ function MentionWrapper({ data, UserMention, RoleMention, parse, props }: Mentio
|
||||||
const mention = children?.[0]?.props?.children;
|
const mention = children?.[0]?.props?.children;
|
||||||
if (typeof mention !== "string") return;
|
if (typeof mention !== "string") return;
|
||||||
|
|
||||||
const id = mention.match(/<@(\d+)>/)?.[1];
|
const id = mention.match(/<@!?(\d+)>/)?.[1];
|
||||||
if (!id) return;
|
if (!id) return;
|
||||||
|
|
||||||
if (fetching.has(id))
|
if (fetching.has(id))
|
||||||
|
|
Loading…
Reference in a new issue