From 0207b9fa121422d561cdce69a04d424c7e2d24ef Mon Sep 17 00:00:00 2001 From: byron <47872200+byeoon@users.noreply.github.com> Date: Tue, 12 Mar 2024 08:55:10 -0400 Subject: [PATCH] [style]fix missing line --- src/userplugins/WebhookManager.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/userplugins/WebhookManager.tsx b/src/userplugins/WebhookManager.tsx index 8f5c3a5a2..e554d0ae4 100644 --- a/src/userplugins/WebhookManager.tsx +++ b/src/userplugins/WebhookManager.tsx @@ -73,7 +73,6 @@ export default definePlugin({ "# Webhook Creator Information: \n " + "Creator UserID: " + response.user.id + "\n" + "Creator Profile: [Click Me](https://img.discord.dog/" + response.user.id + ") \n" - }); }); } @@ -103,6 +102,7 @@ export default definePlugin({ } ], execute: async (option, ctx) => { + // discord seems to have updated their webhook api, sending messages has changed, will work on soon const request = new XMLHttpRequest(); request.open("POST", "" + findOption(option, "url")); request.setRequestHeader('Content-type', 'application/json'); @@ -114,6 +114,7 @@ export default definePlugin({ const params = { content: "" + findOption(option, "message"), + tts: "" + findOption(option, "tts") }; request.send(JSON.stringify(params)); @@ -124,4 +125,4 @@ export default definePlugin({ } } ] -}); \ No newline at end of file +});