Fix NicknamesIconsAPI
This commit is contained in:
parent
1c63caa0c5
commit
753c29e61f
1 changed files with 10 additions and 4 deletions
|
|
@ -14,10 +14,16 @@ export default definePlugin({
|
|||
patches: [
|
||||
{
|
||||
find: "#{intl::USER_PROFILE_PRONOUNS}",
|
||||
replacement: {
|
||||
match: /(?<=shouldUnderlineOnHover:null.{0,200})children:(\i)/,
|
||||
replace: "children:[...Vencord.Api.NicknameIcons._renderIcons({userId:arguments[0].user?.id}),$1]"
|
||||
}
|
||||
replacement: [
|
||||
{
|
||||
match: /(?<=,\i\]\}\)\),)null!=\i/,
|
||||
replace: "($&||Vencord.Api.NicknameIcons._renderIcons({userId:arguments[0].user?.id})?.length)"
|
||||
},
|
||||
{
|
||||
match: /(?<=shouldUnderlineOnHover:null.{0,300})children:(\i)/,
|
||||
replace: "children:[...Vencord.Api.NicknameIcons._renderIcons({userId:arguments[0].user?.id}),$1]"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue