mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
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:
parent
5b052d3030
commit
8e9bdf7be2
2 changed files with 9 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue