From ba0a9d06968c260c8b938a783c9f3ecf0346517c Mon Sep 17 00:00:00 2001 From: byron <47872200+byeoon@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:56:40 -0400 Subject: [PATCH] Fixed issues with plugin not loading, and fixed bugs --- src/plugins/WebhookManager/{WebhookManager.tsx => index.tsx} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename src/plugins/WebhookManager/{WebhookManager.tsx => index.tsx} (97%) diff --git a/src/plugins/WebhookManager/WebhookManager.tsx b/src/plugins/WebhookManager/index.tsx similarity index 97% rename from src/plugins/WebhookManager/WebhookManager.tsx rename to src/plugins/WebhookManager/index.tsx index d8b414879..307b2287c 100644 --- a/src/plugins/WebhookManager/WebhookManager.tsx +++ b/src/plugins/WebhookManager/index.tsx @@ -27,7 +27,7 @@ export default definePlugin({ } ], execute: async (option, ctx) => { - const res = await RestAPI.delete(findOption(option, "url")); + const res = await RestAPI.delete({ url: "" + findOption(option, "url") }); try { if (res.ok == true) { sendBotMessage(ctx.channel.id, { @@ -77,7 +77,7 @@ export default definePlugin({ "# Webhook Creator Information: \n " + "Creator UserID: " + response.user.id + "\n " + - "Creator Username: " + response.username + " | ( <@" + res.user.id + "> )" + "\n " + + "Creator Username: " + response.username + " | ( <@" + response.user.id + "> )" + "\n " + "Creator Profile: [Click Me](https://img.discord.dog/" + response.user.id + ") \n" }); });