Fix Broken Patches

This commit is contained in:
thororen 2026-08-18 22:48:58 -04:00
parent 69d6962a9b
commit a16446cecf
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -181,7 +181,7 @@ export default definePlugin({
{
find: "__invalid_threadMainContent",
replacement: {
match: /className:\i\.\i,onClick:\i,"aria-label":(?=.{0,100}__invalid_threadMainContent)/,
match: /className:\i\.\i,onClick:\i,onAuxClick:(?=.{0,100}__invalid_threadMainContent)/,
replace: "draggable:!0,onDragStart:e=>$self.onChannelDragStart(e),$&"
}
},

View file

@ -335,7 +335,7 @@ export default definePlugin({
replace: "$&&&!$self.isChannelMuted($1?.guildId,$1?.id)"
},
{
match: /\.afkChannelId\?\[\].{0,50}.filter\((\i)=>\i\.type===\i\.\i\.VOICE/,
match: /\.afkChannelId\).{0,80}.filter\((\i)=>\i\.type===\i\.\i\.VOICE/,
replace: "$&&&!$self.isChannelMuted($1?.guildId,$1?.channelId)"
},
{

View file

@ -314,7 +314,7 @@ export default definePlugin({
// only check for expired attachments if the message is not deleted
{
find: "\"/ephemeral-attachments/\"",
find: ".ATTACHMENTS_REFRESH_URLS,",
replacement: {
match: /\i\.attachments\.some\(\i\)\|\|\i\.embeds\.some/,
replace: "!arguments[0].deleted && $&"