From d7036c5886c0459aed13f8fd2085b9170e00c180 Mon Sep 17 00:00:00 2001 From: byeoon <47872200+byeoon@users.noreply.github.com> Date: Fri, 7 Jun 2024 16:02:24 -0400 Subject: [PATCH] shorter lines Co-authored-by: vee --- src/plugins/WebhookManager/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/WebhookManager/index.tsx b/src/plugins/WebhookManager/index.tsx index 42c94d48b..1c9d0e3ca 100644 --- a/src/plugins/WebhookManager/index.tsx +++ b/src/plugins/WebhookManager/index.tsx @@ -32,7 +32,12 @@ export default definePlugin({ ], execute: async (option, ctx) => { try { - await fetch("" + findOption(option, "url"), { method: "DELETE" }).then(() => sendBotMessage(ctx.channel.id, { content: "The webhook has deleted successfully." })); + await fetch(findOption(option, "url"), { + method: "DELETE" + }); + sendBotMessage(ctx.channel.id, { + content: "The webhook has deleted successfully." + }); } catch (error) { sendBotMessage(ctx.channel.id, {