diff --git a/src/plugins/roleColorEverywhere.tsx b/src/plugins/roleColorEverywhere.tsx index 5d48da06c..4085b2542 100644 --- a/src/plugins/roleColorEverywhere.tsx +++ b/src/plugins/roleColorEverywhere.tsx @@ -52,8 +52,8 @@ export default definePlugin({ find: 'className:"mention"', replacement: [ { - match: /user:(\i),channelId:(\i).{0,300}?"@"\.concat\(.+?\)/, - replace: "$&,color:$self.getUserColor($1.id,{channelId:$2})" + match: /user:(\i),channel:(\i).{0,300}?"@"\.concat\(.+?\)/, + replace: "$&,color:$self.getUserColor($1.id,{channelId:$2.id})" } ], predicate: () => settings.store.chatMentions,