remove favorites bypass because its broken
This commit is contained in:
parent
0e05560f41
commit
69024ef633
1 changed files with 0 additions and 14 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue