Fix Patches

This commit is contained in:
thororen1234 2026-02-10 14:31:48 -05:00
parent 4ed679ef15
commit 61acd54364
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -68,8 +68,8 @@ export default definePlugin({
{
find: "VoiceChannel, transitionTo: Channel does not have a guildId",
replacement: {
match: /(?<=\|\|\i\|\|)\i\.default\.selectVoiceChannel\((\i)\.id\)/,
replace: "$self.promptVoiceChannel($1)||$&"
match: /(?=\|\|\i\.\i\.selectVoiceChannel\((\i)\.id\))/,
replace: "||$self.promptVoiceChannel($1)"
}
}
],

View file

@ -990,13 +990,13 @@ export default definePlugin({
}
},
{
find: "MESSAGE,userId:",
find: ".MESSAGE,userId:",
group: true,
replacement: [
{
// Track hovering over reaction popouts.
match: /(?<=return\(0,\i.\i\)\(\i.\i,{className:\i.\i,)(?=onContextMenu:\i=>)/,
replace: "onMouseEnter:()=>{$self.addHoveringReactionPopout(arguments[0].user.id)},onMouseLeave:()=>{$self.removeHoveringReactionPopout(arguments[0].user.id)},$2"
match: /(?<=\(0,\i.\i\)\(\i.\i,{className:\i.\i,)(?=(?:align:\i\.\i\.\i\.CENTER|onContextMenu:\i=>))/g,
replace: "onMouseEnter:()=>{$self.addHoveringReactionPopout(arguments[0].user.id)},onMouseLeave:()=>{$self.removeHoveringReactionPopout(arguments[0].user.id)},"
},
{
// Replace names in reaction popouts.