NicknameIconsAPI: Fix Patches
This commit is contained in:
parent
0bb5d43825
commit
a53ed38a52
1 changed files with 2 additions and 2 deletions
|
|
@ -16,11 +16,11 @@ export default definePlugin({
|
|||
find: "#{intl::USER_PROFILE_PRONOUNS}",
|
||||
replacement: [
|
||||
{
|
||||
match: /(?<=\}\),children:\[)null!=\i/,
|
||||
match: /(?<=children:\i\}\):\i,)null!=\i/,
|
||||
replace: "($&||Vencord.Api.NicknameIcons._renderIcons({userId:arguments[0].user?.id})?.length)"
|
||||
},
|
||||
{
|
||||
match: /(?<=shouldUnderlineOnHover:null.{0,300})children:(\i)/,
|
||||
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