From 070aa343efdf2b6c006434b5f10660e9f999a667 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 29 Apr 2023 23:19:14 +0200 Subject: [PATCH] Remove migratePluginSettings calls --- src/plugins/betterRoleDot.ts | 3 +-- src/plugins/clearURLs/index.ts | 2 -- src/plugins/fakeNitro.tsx | 4 +--- src/plugins/messageClickActions.ts | 3 --- src/plugins/moreKaomoji.ts | 2 -- src/plugins/noDevtoolsWarning.ts | 3 --- src/plugins/noF1.ts | 2 -- src/plugins/noRPC.discordDesktop.ts | 2 -- src/plugins/quickReply.ts | 3 +-- src/plugins/spotifyCrack.ts | 3 +-- src/plugins/spotifyShareCommands.ts | 2 -- src/plugins/vcDoubleClick.ts | 2 -- 12 files changed, 4 insertions(+), 27 deletions(-) diff --git a/src/plugins/betterRoleDot.ts b/src/plugins/betterRoleDot.ts index 1fc18c37..fc13b7b8 100644 --- a/src/plugins/betterRoleDot.ts +++ b/src/plugins/betterRoleDot.ts @@ -16,12 +16,11 @@ * along with this program. If not, see . */ -import { migratePluginSettings, Settings } from "@api/settings"; +import { Settings } from "@api/settings"; import { Devs } from "@utils/constants"; import definePlugin, { OptionType } from "@utils/types"; import { Clipboard, Toasts } from "@webpack/common"; -migratePluginSettings("BetterRoleDot", "ClickableRoleDot"); export default definePlugin({ name: "BetterRoleDot", authors: [Devs.Ven], diff --git a/src/plugins/clearURLs/index.ts b/src/plugins/clearURLs/index.ts index 178a0e11..d1be6c6f 100644 --- a/src/plugins/clearURLs/index.ts +++ b/src/plugins/clearURLs/index.ts @@ -23,7 +23,6 @@ import { removePreEditListener, removePreSendListener } from "@api/MessageEvents"; -import { migratePluginSettings } from "@api/settings"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; @@ -33,7 +32,6 @@ import { defaultRules } from "./defaultRules"; const reRegExpChar = /[\\^$.*+?()[\]{}|]/g; const reHasRegExpChar = RegExp(reRegExpChar.source); -migratePluginSettings("ClearURLs", "clearURLs"); export default definePlugin({ name: "ClearURLs", description: "Removes tracking garbage from URLs", diff --git a/src/plugins/fakeNitro.tsx b/src/plugins/fakeNitro.tsx index fda9b6b7..b067f2a3 100644 --- a/src/plugins/fakeNitro.tsx +++ b/src/plugins/fakeNitro.tsx @@ -17,7 +17,7 @@ */ import { addPreEditListener, addPreSendListener, removePreEditListener, removePreSendListener } from "@api/MessageEvents"; -import { definePluginSettings, migratePluginSettings, Settings } from "@api/settings"; +import { definePluginSettings, Settings } from "@api/settings"; import { Devs } from "@utils/constants"; import { ApngBlendOp, ApngDisposeOp, getGifEncoder, importApngJs } from "@utils/dependencies"; import { getCurrentGuild } from "@utils/discord"; @@ -149,8 +149,6 @@ const settings = definePluginSettings({ } }); -migratePluginSettings("FakeNitro", "NitroBypass"); - export default definePlugin({ name: "FakeNitro", authors: [Devs.Arjix, Devs.D3SOX, Devs.Ven, Devs.obscurity, Devs.captain, Devs.Nuckyz, Devs.AutumnVN], diff --git a/src/plugins/messageClickActions.ts b/src/plugins/messageClickActions.ts index c54a09c0..03f1eb76 100644 --- a/src/plugins/messageClickActions.ts +++ b/src/plugins/messageClickActions.ts @@ -17,7 +17,6 @@ */ import { addClickListener, removeClickListener } from "@api/MessageEvents"; -import { migratePluginSettings } from "@api/settings"; import { Devs } from "@utils/constants"; import definePlugin, { OptionType } from "@utils/types"; import { findByPropsLazy } from "@webpack"; @@ -29,8 +28,6 @@ const keyup = (e: KeyboardEvent) => e.key === "Backspace" && (isDeletePressed = const MANAGE_CHANNELS = 1n << 4n; -migratePluginSettings("MessageClickActions", "MessageQuickActions"); - export default definePlugin({ name: "MessageClickActions", description: "Hold Backspace and click to delete, double click to edit", diff --git a/src/plugins/moreKaomoji.ts b/src/plugins/moreKaomoji.ts index 6be80d66..95991084 100644 --- a/src/plugins/moreKaomoji.ts +++ b/src/plugins/moreKaomoji.ts @@ -17,11 +17,9 @@ */ import { findOption, OptionalMessageOption } from "@api/Commands"; -import { migratePluginSettings } from "@api/settings"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; -migratePluginSettings("MoreKaomoji", "moarKaomojis"); export default definePlugin({ name: "MoreKaomoji", description: "Adds more Kaomoji to discord. ヽ(´▽`)/", diff --git a/src/plugins/noDevtoolsWarning.ts b/src/plugins/noDevtoolsWarning.ts index 2dd514ee..188b8fa3 100644 --- a/src/plugins/noDevtoolsWarning.ts +++ b/src/plugins/noDevtoolsWarning.ts @@ -16,12 +16,9 @@ * along with this program. If not, see . */ -import { migratePluginSettings } from "@api/settings"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; -migratePluginSettings("NoDevtoolsWarning", "STFU"); - export default definePlugin({ name: "NoDevtoolsWarning", description: "Disables the 'HOLD UP' banner in the console. As a side effect, also prevents Discord from hiding your token, which prevents random logouts.", diff --git a/src/plugins/noF1.ts b/src/plugins/noF1.ts index c951149e..a40be5ac 100644 --- a/src/plugins/noF1.ts +++ b/src/plugins/noF1.ts @@ -16,11 +16,9 @@ * along with this program. If not, see . */ -import { migratePluginSettings } from "@api/settings"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; -migratePluginSettings("NoF1", "No F1"); export default definePlugin({ name: "NoF1", description: "Disables F1 help bind.", diff --git a/src/plugins/noRPC.discordDesktop.ts b/src/plugins/noRPC.discordDesktop.ts index ebd7b1a3..ebbbd5e8 100644 --- a/src/plugins/noRPC.discordDesktop.ts +++ b/src/plugins/noRPC.discordDesktop.ts @@ -16,11 +16,9 @@ * along with this program. If not, see . */ -import { migratePluginSettings } from "@api/settings"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; -migratePluginSettings("NoRPC", "No RPC"); export default definePlugin({ name: "NoRPC", description: "Disables Discord's RPC server.", diff --git a/src/plugins/quickReply.ts b/src/plugins/quickReply.ts index d059b332..b038b696 100644 --- a/src/plugins/quickReply.ts +++ b/src/plugins/quickReply.ts @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -import { definePluginSettings, migratePluginSettings, Settings } from "@api/settings"; +import { definePluginSettings, Settings } from "@api/settings"; import { Devs } from "@utils/constants"; import definePlugin, { OptionType } from "@utils/types"; import { findByPropsLazy } from "@webpack"; @@ -29,7 +29,6 @@ const isMac = navigator.platform.includes("Mac"); // bruh let replyIdx = -1; let editIdx = -1; -migratePluginSettings("QuickReply", "InteractionKeybinds"); const enum MentionOptions { DISABLED, diff --git a/src/plugins/spotifyCrack.ts b/src/plugins/spotifyCrack.ts index 2682ccb4..c4033271 100644 --- a/src/plugins/spotifyCrack.ts +++ b/src/plugins/spotifyCrack.ts @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -import { definePluginSettings, migratePluginSettings } from "@api/settings"; +import { definePluginSettings } from "@api/settings"; import { Devs } from "@utils/constants"; import definePlugin, { OptionType } from "@utils/types"; @@ -35,7 +35,6 @@ const settings = definePluginSettings({ } }); -migratePluginSettings("SpotifyCrack", "Ify"); export default definePlugin({ name: "SpotifyCrack", description: "Free listen along, no auto-pausing in voice chat, and allows activity to continue playing when idling", diff --git a/src/plugins/spotifyShareCommands.ts b/src/plugins/spotifyShareCommands.ts index ce29b750..7634e9d5 100644 --- a/src/plugins/spotifyShareCommands.ts +++ b/src/plugins/spotifyShareCommands.ts @@ -17,7 +17,6 @@ */ import { ApplicationCommandInputType, sendBotMessage } from "@api/Commands"; -import { migratePluginSettings } from "@api/settings"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; import { findByPropsLazy } from "@webpack"; @@ -74,7 +73,6 @@ function sendMessage(channelId, message) { }); } -migratePluginSettings("SpotifyShareCommands", "Sendify"); export default definePlugin({ name: "SpotifyShareCommands", description: "Share your current Spotify track, album or artist via slash command (/track, /album, /artist)", diff --git a/src/plugins/vcDoubleClick.ts b/src/plugins/vcDoubleClick.ts index 6d124a6c..31543510 100644 --- a/src/plugins/vcDoubleClick.ts +++ b/src/plugins/vcDoubleClick.ts @@ -16,7 +16,6 @@ * along with this program. If not, see . */ -import { migratePluginSettings } from "@api/settings"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; import { ChannelStore, SelectedChannelStore } from "@webpack/common"; @@ -26,7 +25,6 @@ const timers = {} as Record; -migratePluginSettings("VoiceChatDoubleClick", "vcDoubleClick"); export default definePlugin({ name: "VoiceChatDoubleClick", description: "Join voice chats via double click instead of single click",