RoleColorEverywhere: fix chat mentions

This commit is contained in:
Vendicated 2025-06-17 22:15:11 +02:00
parent a6c1f97d12
commit 0444831073
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -84,8 +84,8 @@ export default definePlugin({
find: ".USER_MENTION)", find: ".USER_MENTION)",
replacement: [ replacement: [
{ {
match: /(?<=onContextMenu:\i,color:)\i(?<=\.getNickname\((\i),\i,(\i).+?)/, match: /(?<=user:(\i),guildId:([^,]+?),.{0,100}?children:\i=>\i)\((\i)\)/,
replace: "$self.getColorInt($2?.id,$1)", replace: "({...$3,color:$self.getColorInt($1?.id,$2)})",
} }
], ],
predicate: () => settings.store.chatMentions predicate: () => settings.store.chatMentions