diff --git a/lib/helpers.js b/lib/helpers.js index 51e8d58..02dd1de 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -27,7 +27,8 @@ if (!globalThis.fetch) { */ async function sendMessageToWebhook(url, message) { // Create the payload object with the message - const payload = { content: message }; + // The message is provided as 2 different properties to improve compatibility with webhook servers outside Discord + const payload = { content: message, body: message }; // Send a POST request to the webhook url with the payload as JSON try {