2025-05-02 21:00:56 -04:00
|
|
|
/*
|
|
|
|
|
* Vencord, a Discord client mod
|
|
|
|
|
* Copyright (c) 2025 Vendicated and contributors
|
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import { Devs } from "@utils/constants";
|
|
|
|
|
import definePlugin from "@utils/types";
|
|
|
|
|
|
|
|
|
|
export default definePlugin({
|
|
|
|
|
name: "NicknameIconsAPI",
|
|
|
|
|
description: "API to add icons to the nickname, in profiles",
|
|
|
|
|
authors: [Devs.Nuckyz],
|
|
|
|
|
patches: [
|
|
|
|
|
{
|
2025-12-13 19:05:17 +01:00
|
|
|
find: "#{intl::USER_PROFILE_PRONOUNS}",
|
2025-05-02 21:00:56 -04:00
|
|
|
replacement: {
|
2026-02-20 14:21:31 -05:00
|
|
|
match: /(?<=shouldUnderlineOnHover:null.{0,150})children:(\i)/,
|
2026-01-23 22:54:39 +01:00
|
|
|
replace: "children:[...Vencord.Api.NicknameIcons._renderIcons({userId:arguments[0].user?.id}),$1]"
|
2025-05-02 21:00:56 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
});
|