Mostly Fix AllCallTimers

This commit is contained in:
thororen1234 2025-02-07 02:43:27 -05:00
parent 77fc5bfd84
commit 85598ddf9b
4 changed files with 7 additions and 34 deletions

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)(?=.*?userId:(\i))(?=.*?contextGuildId:(\i))/,
replace: "$&style:$self.getColorStyle($1.id,$2),"
}
],
predicate: () => settings.store.voiceUsers