Fix ShowHiddenChannels & FakeNitro broken functionality (#2959)

This commit is contained in:
sadan4 2024-10-19 07:06:42 -04:00 committed by GitHub
parent e818905520
commit 4e89352758
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -350,7 +350,7 @@ export default definePlugin({
{
// Filter attachments to remove fake nitro stickers or emojis
predicate: () => settings.store.transformStickers,
match: /renderAttachments\(\i\){let{attachments:(\i).+?;/,
match: /renderAttachments\(\i\){.+?{attachments:(\i).+?;/,
replace: (m, attachments) => `${m}${attachments}=$self.filterAttachments(${attachments});`
}
]

View file

@ -103,7 +103,7 @@ export default definePlugin({
replacement: [
{
// Do not show confirmation to join a voice channel when already connected to another if clicking on a hidden voice channel
match: /(?<=getCurrentClientVoiceChannelId\((\i)\.guild_id\);return)/,
match: /(?<=getBlockedUsersForVoiceChannel\((\i)\.id\);return)/,
replace: (_, channel) => `!$self.isHiddenChannel(${channel})&&`
},
{