diff --git a/src/plugins/roleColorEverywhere/index.tsx b/src/plugins/roleColorEverywhere/index.tsx index 7b811943d..7b7bcc44d 100644 --- a/src/plugins/roleColorEverywhere/index.tsx +++ b/src/plugins/roleColorEverywhere/index.tsx @@ -124,11 +124,11 @@ export default definePlugin({ }, // Voice Users { - find: "renderPrioritySpeaker(){", + find: ".usernameSpeaking]:", replacement: [ { - match: /renderName\(\){.+?usernameSpeaking\]:.+?(?=children)/, - replace: "$&style:$self.getColorStyle(this?.props?.user?.id,this?.props?.guildId)," + match: /\.usernameSpeaking\]:.+?,(?=children)(?<=guildId:(\i),.+?user:(\i).+?)/, + replace: "$&style:$self.getColorStyle($2.id,$1)," } ], predicate: () => settings.store.voiceUsers