From e6ccb751a04ce383c998d717196340c1b4b1da5f Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Wed, 1 Mar 2023 20:35:08 +0000 Subject: Fix for latest Discord Update (#550) Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Co-authored-by: Vendicated --- src/plugins/apiBadges.tsx | 5 +++-- src/plugins/emoteCloner.tsx | 5 +++-- src/plugins/typingTweaks.tsx | 2 +- src/plugins/vcNarrator.tsx | 5 +++-- src/plugins/viewRaw.tsx | 5 +++-- 5 files changed, 13 insertions(+), 9 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/apiBadges.tsx b/src/plugins/apiBadges.tsx index 3fe2f6b..14b548c 100644 --- a/src/plugins/apiBadges.tsx +++ b/src/plugins/apiBadges.tsx @@ -24,9 +24,10 @@ import { Heart } from "@components/Heart"; import { Devs } from "@utils/constants"; import IpcEvents from "@utils/IpcEvents"; import Logger from "@utils/Logger"; +import { Margins } from "@utils/margins"; import { closeModal, Modals, openModal } from "@utils/modal"; import definePlugin from "@utils/types"; -import { Forms, Margins } from "@webpack/common"; +import { Forms } from "@webpack/common"; const CONTRIBUTOR_BADGE = "https://media.discordapp.net/stickers/1026517526106087454.webp"; @@ -150,7 +151,7 @@ export default definePlugin({ This Badge is a special perk for Vencord Donors - + Please consider supporting the development of Vencord by becoming a donor. It would mean a lot!! diff --git a/src/plugins/emoteCloner.tsx b/src/plugins/emoteCloner.tsx index 15d1358..e252fe5 100644 --- a/src/plugins/emoteCloner.tsx +++ b/src/plugins/emoteCloner.tsx @@ -20,11 +20,12 @@ import { migratePluginSettings, Settings } from "@api/settings"; import { CheckedTextInput } from "@components/CheckedTextInput"; import { Devs } from "@utils/constants"; import Logger from "@utils/Logger"; +import { Margins } from "@utils/margins"; import { makeLazy } from "@utils/misc"; import { ModalContent, ModalHeader, ModalRoot, openModal } from "@utils/modal"; import definePlugin from "@utils/types"; import { findByCodeLazy, findByPropsLazy } from "@webpack"; -import { Forms, GuildStore, Margins, Menu, PermissionStore, React, Toasts, Tooltip, UserStore } from "@webpack/common"; +import { Forms, GuildStore, Menu, PermissionStore, React, Toasts, Tooltip, UserStore } from "@webpack/common"; const MANAGE_EMOJIS_AND_STICKERS = 1n << 30n; @@ -96,7 +97,7 @@ function CloneModal({ id, name: emojiName, isAnimated }: { id: string; name: str return ( <> - Custom Name + Custom Name {settings.store.showAvatars &&
} {GuildMemberStore.getNick(guildId!, user.id) || !guildId && RelationshipStore.getNickname(user.id) || user.username} diff --git a/src/plugins/vcNarrator.tsx b/src/plugins/vcNarrator.tsx index b2904ac..7a06fe9 100644 --- a/src/plugins/vcNarrator.tsx +++ b/src/plugins/vcNarrator.tsx @@ -20,10 +20,11 @@ import { Settings } from "@api/settings"; import { ErrorCard } from "@components/ErrorCard"; import { Devs } from "@utils/constants"; import Logger from "@utils/Logger"; +import { Margins } from "@utils/margins"; import { wordsToTitle } from "@utils/text"; import definePlugin, { OptionType, PluginOptionsItem } from "@utils/types"; import { findByPropsLazy } from "@webpack"; -import { Button, ChannelStore, FluxDispatcher, Forms, Margins, SelectedChannelStore, useMemo, UserStore } from "@webpack/common"; +import { Button, ChannelStore, FluxDispatcher, Forms, SelectedChannelStore, useMemo, UserStore } from "@webpack/common"; interface VoiceState { userId: string; @@ -304,7 +305,7 @@ export default definePlugin({
{hasEnglishVoices && ( <> - Play Example Sounds + Play Example Sounds
Content - + )} -- cgit