diff --git a/src/plugins/betterFolders/FolderSideBar.tsx b/src/plugins/betterFolders/FolderSideBar.tsx index 7159f7ee..6353a971 100644 --- a/src/plugins/betterFolders/FolderSideBar.tsx +++ b/src/plugins/betterFolders/FolderSideBar.tsx @@ -36,7 +36,8 @@ function Guilds(props: { // @ts-expect-error const res = Vencord.Plugins.plugins.BetterFolders.Guilds(props); - const scrollerProps = res.props.children?.props?.children?.[1]?.props; + // TODO: Make this better + const scrollerProps = res.props.children?.props?.children?.props?.children?.[1]?.props; if (scrollerProps?.children) { const servers = scrollerProps.children.find(c => c?.props?.["aria-label"] === i18n.Messages.SERVERS); if (servers) scrollerProps.children = servers; diff --git a/src/plugins/mutualGroupDMs.tsx b/src/plugins/mutualGroupDMs.tsx index 6d6dc528..a3658137 100644 --- a/src/plugins/mutualGroupDMs.tsx +++ b/src/plugins/mutualGroupDMs.tsx @@ -78,7 +78,7 @@ export default definePlugin({
{getGroupDMName(c)}
-
{c.recipients.length} Members
+
{c.recipients.length + 1} Members
)); diff --git a/src/plugins/validUser.tsx b/src/plugins/validUser.tsx index 42349b45..69e0f13e 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(); 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 > { - const mention = children?.[0]; + const mention = children?.[0]?.props?.children; if (typeof mention !== "string") return; const id = mention.match(/<@(\d+)>/)?.[1];