From db4c0d1446281591948288aad3471505693433b8 Mon Sep 17 00:00:00 2001 From: byron <47872200+byeoon@users.noreply.github.com> Date: Wed, 12 Jun 2024 17:32:49 -0400 Subject: [PATCH] test --- src/plugins/webhookManager.desktop/index.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/plugins/webhookManager.desktop/index.tsx b/src/plugins/webhookManager.desktop/index.tsx index a6c150059..17b7e1bf7 100644 --- a/src/plugins/webhookManager.desktop/index.tsx +++ b/src/plugins/webhookManager.desktop/index.tsx @@ -13,6 +13,7 @@ import definePlugin, { PluginNative } from "@utils/types"; const Native = VencordNative.pluginHelpers.WebhookManager as PluginNative; let url, message, username, avatarUrl = ""; +let jsonMode = false; // TODO: fix webhooks not sending, fix probable undefined when null issue, add sending as raw again (wanted to make it a checkbox but i cant find checkbox) function WebhookMessageModal(props: ModalProps) { @@ -26,11 +27,6 @@ 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 + { + v = jsonMode; + console.log("hi"); + }} // 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 Username