From 286a77b20b29104ac830f58c4c6f56455fa7ee44 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 26 Feb 2025 19:45:30 -0500 Subject: [PATCH] Finish Purge For Merge --- src/plugins/translate/index.tsx | 9 --------- src/plugins/translate/settings.ts | 5 ----- 2 files changed, 14 deletions(-) diff --git a/src/plugins/translate/index.tsx b/src/plugins/translate/index.tsx index 975f67ba..363897d1 100644 --- a/src/plugins/translate/index.tsx +++ b/src/plugins/translate/index.tsx @@ -22,21 +22,12 @@ import { findGroupChildrenByChildId, NavContextMenuPatchCallback } from "@api/Co import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; import { ChannelStore, Menu } from "@webpack/common"; -import { Message } from "discord-types/general"; import { settings } from "./settings"; import { setShouldShowTranslateEnabledTooltip, TranslateChatBarIcon, TranslateIcon } from "./TranslateIcon"; import { handleTranslate, TranslationAccessory } from "./TranslationAccessory"; import { translate } from "./utils"; -interface IMessageCreate { - type: "MESSAGE_CREATE"; - optimistic: boolean; - isPushNotification: boolean; - channelId: string; - message: Message; -} - const messageCtxPatch: NavContextMenuPatchCallback = (children, { message }) => { if (!message.content) return; diff --git a/src/plugins/translate/settings.ts b/src/plugins/translate/settings.ts index 404ccfbf..58042c5e 100644 --- a/src/plugins/translate/settings.ts +++ b/src/plugins/translate/settings.ts @@ -77,11 +77,6 @@ export const settings = definePluginSettings({ type: OptionType.BOOLEAN, description: "Show a tooltip on the ChatBar button whenever a message is automatically translated", default: true - }, - disableOnSameLanguage: { - type: OptionType.BOOLEAN, - description: "Disable auto translate if the current language doesnt change", - default: true } }).withPrivateSettings<{ showAutoTranslateAlert: boolean;