From b4366bdab6cf945edb2db6b0f0b623f99b118607 Mon Sep 17 00:00:00 2001 From: byron <47872200+byeoon@users.noreply.github.com> Date: Tue, 9 Apr 2024 12:32:53 -0400 Subject: [PATCH] small code refactors and changes to text --- src/plugins/WebhookManager/index.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/plugins/WebhookManager/index.tsx b/src/plugins/WebhookManager/index.tsx index fccef8dbf..9c9a827b1 100644 --- a/src/plugins/WebhookManager/index.tsx +++ b/src/plugins/WebhookManager/index.tsx @@ -41,7 +41,7 @@ export default definePlugin({ } else { sendBotMessage(ctx.channel.id, { - content: "There was an error with deleting the webhook, error code: " + res.status + content: "There was an error with deleting the webhook, Error: " + res.status }); } } @@ -112,7 +112,7 @@ export default definePlugin({ }, { name: "username", - description: "Send with a custom webhook username", + description: "Send with a custom username", type: ApplicationCommandOptionType.STRING, required: false }, @@ -147,13 +147,11 @@ export default definePlugin({ }); } else { - if (webhookUsername === "") { + if (webhookUsername === "") webhookUsername = undefined; - } - if (webhookProfilePic === "") { + if (webhookProfilePic === "") webhookProfilePic = undefined; - } Native.executeWebhook("" + webhookUrl, { content: webhookMessage,