remove favorites bypass because its broken

This commit is contained in:
thororen1234 2026-03-04 18:52:54 -05:00
parent 0e05560f41
commit 69024ef633
No known key found for this signature in database

View file

@ -142,11 +142,6 @@ const settings = definePluginSettings({
type: OptionType.BOOLEAN,
default: false
},
enableFavoriteServersBypass: {
description: "Allow favoriting servers without nitro",
type: OptionType.BOOLEAN,
default: true
},
});
function hasPermission(channelId: string, permission: bigint) {
@ -382,15 +377,6 @@ export default definePlugin({
replace: "true"
}
},
// Might bypass favorites req
{
find: ".favoriteAdded,notifyFavoriteAdded:",
predicate: () => settings.store.enableFavoriteServersBypass,
replacement: {
match: /(?<=getCurrentUser\(\)\),\i=).{0,25}\.PremiumTypes.TIER_2\)/,
replace: "true",
}
},
],
get guildId() {