From 8e9bdf7be275db705b1d97f756d0184edbcc2fa5 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:44:40 -0500 Subject: [PATCH] Move NoNitroupsell Console Fix This was because the plugin spams due to the premium type being changed tmk but adding this makes the client restart if the plugin is enabled or disabled because of patches which will stop this issue. --- src/equicordplugins/noNitroUpsell/index.ts | 9 +++++++++ src/plugins/consoleJanitor/index.ts | 7 ------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/equicordplugins/noNitroUpsell/index.ts b/src/equicordplugins/noNitroUpsell/index.ts index 5208ba11..f7df20e6 100644 --- a/src/equicordplugins/noNitroUpsell/index.ts +++ b/src/equicordplugins/noNitroUpsell/index.ts @@ -37,6 +37,15 @@ export default definePlugin({ name: "NoNitroUpsell", description: "Removes ALL of Discord's nitro upsells by tricking the client into thinking you have nitro.", authors: [EquicordDevs.thororen], + patches: [ + { + find: "ProductCatalog", + replacement: { + match: /\i\.warn\("Cannot find the corresponding SKU to the user's premium type "\.concat\(\i\.premiumType\)\),/, + replace: "" + } + } + ], start() { user = UserStore.getCurrentUser(); if (user) ready(user); diff --git a/src/plugins/consoleJanitor/index.ts b/src/plugins/consoleJanitor/index.ts index 4b3193ed..2c29bf67 100644 --- a/src/plugins/consoleJanitor/index.ts +++ b/src/plugins/consoleJanitor/index.ts @@ -123,13 +123,6 @@ export default definePlugin({ replace: "" } }, - { - find: "ProductCatalog", - replacement: { - match: /\i\.warn\("Cannot find the corresponding SKU to the user's premium type "\.concat\(\i\.premiumType\)\),/, - replace: "" - } - }, { find: "Slow dispatch on", replacement: {