From fcf8690d2699c22f2bc552b8a4250673bf6f1630 Mon Sep 17 00:00:00 2001 From: sadan4 <117494111+sadan4@users.noreply.github.com> Date: Fri, 7 Feb 2025 13:32:55 -0500 Subject: [PATCH] RoleColorEverywhere: Fix coloring voice user list (#3206) --- src/plugins/roleColorEverywhere/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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