RoleColorEverywhere: Fix coloring voice user list (#3206)

This commit is contained in:
sadan4 2025-02-07 13:32:55 -05:00 committed by GitHub
parent e4380632e0
commit fcf8690d26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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