aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-09-08 03:42:20 +0200
committerGitHub <noreply@github.com>2023-09-08 03:42:20 +0200
commit885c75fdaad811017dd8645c0ed3a7234371897d (patch)
tree45d7eb166d225ba8156a634677d7efd9e70c9703 /src/plugins
parentf2a22c5e57515fd6fc41cece083444d4cbc11ebc (diff)
downloadVencord-885c75fdaad811017dd8645c0ed3a7234371897d.tar.gz
Vencord-885c75fdaad811017dd8645c0ed3a7234371897d.tar.bz2
Vencord-885c75fdaad811017dd8645c0ed3a7234371897d.zip
add custom plugin author popouts (#1712)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/pronoundb/pronoundbUtils.ts5
-rw-r--r--src/plugins/showConnections/index.tsx3
2 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/pronoundb/pronoundbUtils.ts b/src/plugins/pronoundb/pronoundbUtils.ts
index 8bde10e..eac204b 100644
--- a/src/plugins/pronoundb/pronoundbUtils.ts
+++ b/src/plugins/pronoundb/pronoundbUtils.ts
@@ -21,14 +21,11 @@ import { VENCORD_USER_AGENT } from "@utils/constants";
import { debounce } from "@utils/debounce";
import { getCurrentChannel } from "@utils/discord";
import { useAwaiter } from "@utils/react";
-import { findStoreLazy } from "@webpack";
-import { UserStore } from "@webpack/common";
+import { UserProfileStore, UserStore } from "@webpack/common";
import { settings } from "./settings";
import { PronounCode, PronounMapping, PronounsResponse } from "./types";
-const UserProfileStore = findStoreLazy("UserProfileStore");
-
type PronounsWithSource = [string | null, string];
const EmptyPronouns: PronounsWithSource = [null, ""];
diff --git a/src/plugins/showConnections/index.tsx b/src/plugins/showConnections/index.tsx
index 404a8db..1f6ef34 100644
--- a/src/plugins/showConnections/index.tsx
+++ b/src/plugins/showConnections/index.tsx
@@ -27,13 +27,12 @@ import { copyWithToast } from "@utils/misc";
import { LazyComponent } from "@utils/react";
import definePlugin, { OptionType } from "@utils/types";
import { findByCode, findByCodeLazy, findByPropsLazy, findStoreLazy } from "@webpack";
-import { Text, Tooltip } from "@webpack/common";
+import { Text, Tooltip, UserProfileStore } from "@webpack/common";
import { User } from "discord-types/general";
import { VerifiedIcon } from "./VerifiedIcon";
const Section = LazyComponent(() => findByCode("().lastSection"));
-const UserProfileStore = findStoreLazy("UserProfileStore");
const ThemeStore = findStoreLazy("ThemeStore");
const platforms: { get(type: string): ConnectionPlatform; } = findByPropsLazy("isSupported", "getByUrl");
const getTheme: (user: User, displayProfile: any) => any = findByCodeLazy(',"--profile-gradient-primary-color"');