From 83fedd4df19ced463c09f24f433a8b29093ca9a6 Mon Sep 17 00:00:00 2001 From: byron <47872200+byeoon@users.noreply.github.com> Date: Wed, 27 Mar 2024 00:16:41 -0400 Subject: [PATCH] remove empty lines --- src/plugins/WebhookManager/native.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/WebhookManager/native.ts b/src/plugins/WebhookManager/native.ts index 12dcdc890..321739e12 100644 --- a/src/plugins/WebhookManager/native.ts +++ b/src/plugins/WebhookManager/native.ts @@ -10,7 +10,6 @@ export function executeWebhook(_, url: string, body: object) { const { hostname, pathname } = new URL(url); if (!["discord.com", "ptb.discord.com", "canary.discord.com"].includes(hostname) || !pathname.startsWith("/api/webhooks/")) { - throw new Error("This URL is not a valid webhook."); }