From 9c13befcb67b3d075a5efcc72853fa365f48d373 Mon Sep 17 00:00:00 2001 From: Amia <9750071+aamiaa@users.noreply.github.com> Date: Wed, 25 Oct 2023 20:24:31 +0200 Subject: [PATCH] fix: ServerProfile (#1881) --- src/plugins/serverProfile/GuildProfileModal.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/serverProfile/GuildProfileModal.tsx b/src/plugins/serverProfile/GuildProfileModal.tsx index 2a7958a1..80f0842b 100644 --- a/src/plugins/serverProfile/GuildProfileModal.tsx +++ b/src/plugins/serverProfile/GuildProfileModal.tsx @@ -11,13 +11,13 @@ import { openImageModal, openUserProfile } from "@utils/discord"; import { classes } from "@utils/misc"; import { ModalRoot, ModalSize, openModal } from "@utils/modal"; import { LazyComponent, useAwaiter } from "@utils/react"; -import { findByCode, findByPropsLazy } from "@webpack"; +import { findByProps, findByPropsLazy } from "@webpack"; import { FluxDispatcher, Forms, GuildChannelStore, GuildMemberStore, moment, Parser, PresenceStore, RelationshipStore, ScrollerThin, SnowflakeUtils, TabBar, Timestamp, useEffect, UserStore, UserUtils, useState, useStateFromStores } from "@webpack/common"; import { Guild, User } from "discord-types/general"; const IconUtils = findByPropsLazy("getGuildBannerURL"); const IconClasses = findByPropsLazy("icon", "acronym", "childWrapper"); -const UserRow = LazyComponent(() => findByCode(".listDiscriminator")); +const FriendRow = LazyComponent(() => findByProps("FriendRow").FriendRow); const cl = classNameFactory("vc-gp-"); @@ -235,7 +235,7 @@ function UserList(type: "friends" | "blocked", guild: Guild, ids: string[], setC return ( {members.map(id => - openUserProfile(id)}