mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 19:45:09 +00:00
RoleColorEverywhere: Fix not working on voice channel and chat (#3934)
Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com>
This commit is contained in:
parent
1e284c7cdf
commit
fbfc38a1a6
1 changed files with 2 additions and 2 deletions
|
|
@ -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}))`;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue