From fbfc38a1a6a89c0a841571799dd360e86f1fe20e Mon Sep 17 00:00:00 2001 From: sadan4 <117494111+sadan4@users.noreply.github.com> Date: Fri, 23 Jan 2026 21:28:49 -0500 Subject: [PATCH] RoleColorEverywhere: Fix not working on voice channel and chat (#3934) Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com> --- src/plugins/roleColorEverywhere/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/roleColorEverywhere/index.tsx b/src/plugins/roleColorEverywhere/index.tsx index 03a71f49b..872efdc64 100644 --- a/src/plugins/roleColorEverywhere/index.tsx +++ b/src/plugins/roleColorEverywhere/index.tsx @@ -127,7 +127,7 @@ export default definePlugin({ find: "#{intl::GUEST_NAME_SUFFIX})]", replacement: [ { - match: /#{intl::GUEST_NAME_SUFFIX}.{0,50}?""\](?<=guildId:(\i),.{0,50}?user:(\i).+?)/, + match: /#{intl::GUEST_NAME_SUFFIX}.{0,50}?""\](?<=guildId:(\i),.+?user:(\i).+?)/, replace: "$&,style:$self.getColorStyle($2.id,$1)," } ], @@ -195,7 +195,7 @@ export default definePlugin({ const author = useMessageAuthor(message); // Do not apply role color if the send fails, otherwise it becomes indistinguishable - if (message.state !== "SEND_FAILED") return; + if (message.state === "SEND_FAILED") return; if (author.colorString != null && messageSaturation !== 0) { const value = `color-mix(in oklab, ${author.colorString} ${messageSaturation}%, var({DEFAULT}))`;