From d29d5e9476d9744b247bce86e73068a6c01640fe Mon Sep 17 00:00:00 2001 From: byron <47872200+byeoon@users.noreply.github.com> Date: Mon, 20 May 2024 15:53:56 -0400 Subject: [PATCH] revert error change --- src/plugins/WebhookManager/index.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/plugins/WebhookManager/index.tsx b/src/plugins/WebhookManager/index.tsx index 9fcff3be8..86e603297 100644 --- a/src/plugins/WebhookManager/index.tsx +++ b/src/plugins/WebhookManager/index.tsx @@ -35,12 +35,6 @@ export default definePlugin({ await fetch("" + findOption(option, "url"), { method: "DELETE" }).then(() => sendBotMessage(ctx.channel.id, { content: "The webhook has deleted successfully." })); } catch (error) { - if (!["discord.com", "ptb.discord.com", "canary.discord.com"].includes(findOption(option, "url")) || !findOption(option, "url").startsWith("/api/webhooks/")) { - sendBotMessage(ctx.channel.id, { - content: "Please input a valid webhook URL to delete." - }); - } - sendBotMessage(ctx.channel.id, { content: "There was an error deleting the webhook. Did you input a valid webhook URL? Error: " + error });