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.
This commit is contained in:
thororen 2024-12-05 13:44:40 -05:00
parent 5b052d3030
commit 8e9bdf7be2
2 changed files with 9 additions and 7 deletions

View file

@ -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);

View file

@ -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: {