mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-29 08:24:26 -04:00
RoleColorEverywhere: fix chat mentions
This commit is contained in:
parent
a6c1f97d12
commit
0444831073
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue