diff options
author | V <vendicated@riseup.net> | 2023-06-22 22:35:59 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-06-22 22:35:59 +0200 |
commit | 5a0e5018297e83877a8db7b323d3c265b7663393 (patch) | |
tree | ed852335a36f75c6ae05bf01fda1caf358e5aa42 /src/plugins/validUser.tsx | |
parent | 92113da7c0d89c595310d79fdcdfc657b21a2ad5 (diff) | |
download | Vencord-5a0e5018297e83877a8db7b323d3c265b7663393.tar.gz Vencord-5a0e5018297e83877a8db7b323d3c265b7663393.tar.bz2 Vencord-5a0e5018297e83877a8db7b323d3c265b7663393.zip |
Fix ValidUser, BetterFolders & MutualGroupDms
Co-authored-by: Juby210 <31005896+Juby210@users.noreply.github.com>
Co-authored-by: Amia <9750071+aamiaa@users.noreply.github.com>
Diffstat (limited to 'src/plugins/validUser.tsx')
-rw-r--r-- | src/plugins/validUser.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/validUser.tsx b/src/plugins/validUser.tsx index 42349b4..69e0f13 100644 --- a/src/plugins/validUser.tsx +++ b/src/plugins/validUser.tsx @@ -24,7 +24,7 @@ import definePlugin from "@utils/types"; import { findByCodeLazy } from "@webpack"; import { UserStore, useState } from "@webpack/common"; import type { User } from "discord-types/general"; -import type { ComponentType } from "react"; +import type { ComponentType, ReactNode } from "react"; const fetching = new Set<string>(); const queue = new Queue(5); @@ -36,7 +36,7 @@ interface MentionProps { channelId?: string; content: any; }; - parse: (content: any, props: MentionProps["props"]) => string[]; + parse: (content: any, props: MentionProps["props"]) => ReactNode; props: { key: string; formatInline: boolean; @@ -72,7 +72,7 @@ function MentionWrapper({ data, UserMention, RoleMention, parse, props }: Mentio > <span onMouseEnter={() => { - const mention = children?.[0]; + const mention = children?.[0]?.props?.children; if (typeof mention !== "string") return; const id = mention.match(/<@(\d+)>/)?.[1]; |