Skip to content

Commit

Permalink
Fix ShowHiddenChannels & FakeNitro broken functionality (#2959)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadan4 authored Oct 19, 2024
1 parent e818905 commit 4e89352
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/fakeNitro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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});`
}
]
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/showHiddenChannels/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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})&&`
},
{
Expand Down

0 comments on commit 4e89352

Please sign in to comment.