RoleColorEverywhere: Fix coloring voice user list (#3206)
This commit is contained in:
parent
e4380632e0
commit
fcf8690d26
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue