From f6ed48d0be8147fb967ca5a6a29b33850e19b3e2 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Mon, 3 Jun 2024 20:54:08 -0400 Subject: [PATCH] feat(Woof): added --- src/equicordplugins/woof/index.tsx | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/equicordplugins/woof/index.tsx diff --git a/src/equicordplugins/woof/index.tsx b/src/equicordplugins/woof/index.tsx new file mode 100644 index 00000000..a72a6dbb --- /dev/null +++ b/src/equicordplugins/woof/index.tsx @@ -0,0 +1,34 @@ +/* + * 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: "woof" }); +} + +const ChatBarIcon: ChatBarButton = () => { + return ( + + + + ); +}; + +export default definePlugin({ + name: "Woof", + description: "Adds a chatbar button to woof in chat", + authors: + [ + Devs.Samwich + ], + start() { + addChatBarButton("vc-woof", ChatBarIcon); + } +});