From c93f694faf7500ae85a742c62f27672ca118f472 Mon Sep 17 00:00:00 2001 From: byeoon <47872200+byeoon@users.noreply.github.com> Date: Tue, 11 Jun 2024 09:08:15 -0400 Subject: [PATCH] found switch / checkbox element --- src/plugins/webhookManager.desktop/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/webhookManager.desktop/index.tsx b/src/plugins/webhookManager.desktop/index.tsx index 7c950a6e9..a6c150059 100644 --- a/src/plugins/webhookManager.desktop/index.tsx +++ b/src/plugins/webhookManager.desktop/index.tsx @@ -8,7 +8,7 @@ import { ApplicationCommandInputType, ApplicationCommandOptionType, findOption, import { Devs } from "@utils/constants"; import { Margins } from "@utils/margins"; import { ModalContent, ModalProps, ModalRoot, ModalSize, openModal } from "@utils/modal"; -import { Button, Forms, React, TextInput } from "@webpack/common"; +import { Button, Forms, React, Switch, TextInput } from "@webpack/common"; import definePlugin, { PluginNative } from "@utils/types"; const Native = VencordNative.pluginHelpers.WebhookManager as PluginNative; @@ -26,6 +26,11 @@ function WebhookMessageModal(props: ModalProps) { console.log(url); // why the FUCK is it undefined. }} /> + { }} // maybe switch? don't use shitcode where i make an int and set it to 2 and then check if the int is 2 thats too much shitcode. + >Send as Raw JSON Webhook Message