Skip to content

Commit

Permalink
Update soundboard guild limit bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
Loukious committed Mar 29, 2024
1 parent 0b60681 commit f71da68
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/plugins/fakeNitro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -394,15 +394,6 @@ export default definePlugin({
replace: "$&return true;"
},
},
{
find: "available:e.available",
predicate: () => settings.store.enableSoundboardGuildLimitBypass,
replacement: {
// Bypasses the guild limit for soundboard sounds by boost level
match: /available:e\.available/,
replace: "available:true"
}
},
// Allow using custom app icons
{
find: "canUsePremiumAppIcons:function",
Expand All @@ -422,6 +413,7 @@ export default definePlugin({
// Make all Soundboard sounds available
{
find: 'type:"GUILD_SOUNDBOARD_SOUND_CREATE"',
predicate: () => settings.store.enableSoundboardGuildLimitBypass,
replacement: {
match: /(?<=type:"(?:SOUNDBOARD_SOUNDS_RECEIVED|GUILD_SOUNDBOARD_SOUND_CREATE|GUILD_SOUNDBOARD_SOUND_UPDATE|GUILD_SOUNDBOARD_SOUNDS_UPDATE)".+?available:)\i\.available/g,
replace: "true"
Expand Down

0 comments on commit f71da68

Please sign in to comment.