Equicord/src/plugins/_api/chatButtons.ts
thororen1234 44a163789d
Reapply "Reapply "Fix Broken Patches""
This reverts commit a92e2a2885.
2025-11-11 09:51:11 -05:00

24 lines
648 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";
export default definePlugin({
name: "ChatInputButtonAPI",
description: "API to add buttons to the chat input",
authors: [Devs.Ven],
patches: [
{
find: '"sticker")',
replacement: {
match: /(?=\i&&(\i)\.push.{0,15}"submit".{0,100}?null!=(\i))/,
replace: "Vencord.Api.ChatButtons._injectButtons($1,$2,arguments[0]),"
}
}
]
});