diff --git a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx index 139fb8a6..0fce9cf4 100644 --- a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx +++ b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx @@ -23,6 +23,8 @@ import { fetchPronouns, formatPronouns } from "../pronoundbUtils"; import { PronounMapping, UserProfilePronounsProps, UserProfileProps } from "../types"; export default function PronounsProfileWrapper(PronounsComponent: React.ElementType, props: UserProfilePronounsProps, profileProps: UserProfileProps) { + if (!profileProps) return null; + const user = UserStore.getUser(profileProps.userId) ?? {}; // Don't bother fetching bot or system users if (user.bot || user.system) return null; diff --git a/src/plugins/viewIcons.tsx b/src/plugins/viewIcons.tsx index 399bf72b..afffdff3 100644 --- a/src/plugins/viewIcons.tsx +++ b/src/plugins/viewIcons.tsx @@ -36,6 +36,8 @@ export default definePlugin({ authors: [Devs.Ven], description: "Makes Avatars/Banners in user profiles clickable, and adds Guild Context Menu Entries to View Banner/Icon.", + dependencies: ["MenuItemDeobfuscatorApi"], + openImage(url: string) { const u = new URL(url); u.searchParams.set("size", "512");