diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-12 15:09:02 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-12 17:20:19 +0100 |
commit | 81edc1407071c6c0328f40a1ee487ea0388b9a7e (patch) | |
tree | 42c54ab94a58d9ffd5a2b201cfe9539a158386e4 /src/plugins/viewIcons.tsx | |
parent | b48c8d8a4a003ffe4bdee4c3ba3ae6f54ce1f317 (diff) | |
download | Vencord-81edc1407071c6c0328f40a1ee487ea0388b9a7e.tar.gz Vencord-81edc1407071c6c0328f40a1ee487ea0388b9a7e.tar.bz2 Vencord-81edc1407071c6c0328f40a1ee487ea0388b9a7e.zip |
fix PronounDB crash with new profile in dms, force start dependencies
Diffstat (limited to 'src/plugins/viewIcons.tsx')
-rw-r--r-- | src/plugins/viewIcons.tsx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/viewIcons.tsx b/src/plugins/viewIcons.tsx index afffdff..671b197 100644 --- a/src/plugins/viewIcons.tsx +++ b/src/plugins/viewIcons.tsx @@ -21,7 +21,7 @@ import type { Guild } from "discord-types/general"; import { Devs } from "../utils/constants"; import { LazyComponent, lazyWebpack } from "../utils/misc"; import { ModalRoot, ModalSize, openModal } from "../utils/modal"; -import definePlugin from "../utils/types"; +import { PluginDef } from "../utils/types"; import { filters, find } from "../webpack"; import { Menu } from "../webpack/common"; @@ -31,12 +31,12 @@ const MaskedLink = LazyComponent(() => find(m => m.type?.toString().includes("MA const GuildBannerStore = lazyWebpack(filters.byProps("getGuildBannerURL")); const OPEN_URL = "Vencord.Plugins.plugins.ViewIcons.openImage("; -export default definePlugin({ - name: "ViewIcons", - authors: [Devs.Ven], - description: "Makes Avatars/Banners in user profiles clickable, and adds Guild Context Menu Entries to View Banner/Icon.", +export default new class ViewIcons implements PluginDef { + name = "ViewIcons"; + authors = [Devs.Ven]; + description = "Makes Avatars/Banners in user profiles clickable, and adds Guild Context Menu Entries to View Banner/Icon."; - dependencies: ["MenuItemDeobfuscatorApi"], + dependencies = ["MenuItemDeobfuscatorApi"]; openImage(url: string) { const u = new URL(url); @@ -53,9 +53,9 @@ export default definePlugin({ /> </ModalRoot> )); - }, + } - patches: [ + patches = [ { find: "onAddFriend:", replacement: { @@ -84,7 +84,7 @@ export default definePlugin({ } ] } - ], + ]; buildGuildContextMenuEntries(guild: Guild) { return ( @@ -108,4 +108,4 @@ export default definePlugin({ </Menu.MenuGroup> ); } -}); +}; |