/* * Vencord, a Discord client mod * Copyright (c) 2024 Vendicated and contributors * SPDX-License-Identifier: GPL-3.0-or-later */ import { addChatBarButton, ChatBarButton } from "@api/ChatButtons"; import { Devs } from "@utils/constants"; import { getCurrentChannel, sendMessage } from "@utils/discord"; import definePlugin from "@utils/types"; async function handleButtonClick() { sendMessage(getCurrentChannel().id, { content: "meow" }); } const ChatBarIcon: ChatBarButton = () => { return ( ); }; export default definePlugin({ name: "Meow", description: "Adds a chatbar button to meow in chat", authors: [Devs.Samwich], start() { addChatBarButton("vc-meow", ChatBarIcon); } });