Equicord/src/equicordplugins/friendCodes/index.tsx
2025-04-13 21:46:55 -04:00

29 lines
733 B
TypeScript

/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
import FriendCodesPanel from "./FriendCodesPanel";
export default definePlugin({
name: "FriendCodes",
description: "Generate FriendCodes to easily add friends",
authors: [Devs.HypedDomi],
patches: [
{
find: "#{intl::ADD_FRIEND})}),(",
replacement: {
match: /header,children:\[.*?\{\}\)/,
replace: "$&,$self.FriendCodesPanel"
}
}
],
get FriendCodesPanel() {
return <FriendCodesPanel />;
}
});