diff --git a/src/plugins/webhookManager.desktop/index.tsx b/src/plugins/webhookManager.desktop/index.tsx index ce219d897..7c950a6e9 100644 --- a/src/plugins/webhookManager.desktop/index.tsx +++ b/src/plugins/webhookManager.desktop/index.tsx @@ -12,7 +12,7 @@ import { Button, Forms, React, TextInput } from "@webpack/common"; import definePlugin, { PluginNative } from "@utils/types"; const Native = VencordNative.pluginHelpers.WebhookManager as PluginNative; -let url, message, username, avatar_url = ""; +let url, message, username, avatarUrl = ""; // 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) { @@ -23,6 +23,7 @@ function WebhookMessageModal(props: ModalProps) { placeholder={"https://discord.com/api/webhooks/1235349630980722698/QQv06cMyTurEIU8nQsZRQMKxdmnnN6FA8Eaa9zbDqGwqeeACx9UAS6CcnVt7B3v8r8t2"} onChange={v => { v = url; + console.log(url); // why the FUCK is it undefined. }} /> Webhook Message @@ -43,7 +44,7 @@ function WebhookMessageModal(props: ModalProps) { { - v = avatar_url; + v = avatarUrl; }} />