(NicknameIconsAPI): fix (#557)

* (NicknameIconsAPI): fix

* looks better
This commit is contained in:
prism 2025-12-13 19:05:17 +01:00 • committed by GitHub
parent 681af7b131
commit 396b372b70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,10 +13,10 @@ export default definePlugin({
authors: [Devs.Nuckyz],
patches: [
{
find: "#{intl::USER_PROFILE_LOAD_ERROR}",
find: "#{intl::USER_PROFILE_PRONOUNS}",
replacement: {
match: /(\.fetchError.+?\?)null/,
replace: (_, rest) => `${rest}Vencord.Api.NicknameIcons._renderIcons(arguments[0])`
match: /(\.nicknameIcons,children:)(\i)/,
replace: "$1[...Vencord.Api.NicknameIcons._renderIcons({userId:arguments[0].user?.id}),$2]"
}
}
]