Fix Broken Patches
This commit is contained in:
parent
69d6962a9b
commit
a16446cecf
3 changed files with 3 additions and 3 deletions
|
|
@ -181,7 +181,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "__invalid_threadMainContent",
|
find: "__invalid_threadMainContent",
|
||||||
replacement: {
|
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),$&"
|
replace: "draggable:!0,onDragStart:e=>$self.onChannelDragStart(e),$&"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -335,7 +335,7 @@ export default definePlugin({
|
||||||
replace: "$&&&!$self.isChannelMuted($1?.guildId,$1?.id)"
|
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)"
|
replace: "$&&&!$self.isChannelMuted($1?.guildId,$1?.channelId)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -314,7 +314,7 @@ export default definePlugin({
|
||||||
|
|
||||||
// only check for expired attachments if the message is not deleted
|
// only check for expired attachments if the message is not deleted
|
||||||
{
|
{
|
||||||
find: "\"/ephemeral-attachments/\"",
|
find: ".ATTACHMENTS_REFRESH_URLS,",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\i\.attachments\.some\(\i\)\|\|\i\.embeds\.some/,
|
match: /\i\.attachments\.some\(\i\)\|\|\i\.embeds\.some/,
|
||||||
replace: "!arguments[0].deleted && $&"
|
replace: "!arguments[0].deleted && $&"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue