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