diff --git a/discord-commits/index.js b/discord-commits/index.js index 0ab7634..16e3829 100644 --- a/discord-commits/index.js +++ b/discord-commits/index.js @@ -49,7 +49,9 @@ const payload = { }; try { - await fetch(`${webhook}?wait=true`, { + const webhookURL = new URL(webhook); + webhookURL.searchParams.set('wait','true'); + await fetch(webhookURL.toString(), { method: "POST", headers: { "Content-Type": "application/json", diff --git a/dist/index.js b/dist/index.js index 156b3c4..4e4e603 100644 --- a/dist/index.js +++ b/dist/index.js @@ -39198,7 +39198,9 @@ const payload = { }; try { - await (0,node_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)(`${webhook}?wait=true`, { + const webhookURL = new URL(webhook); + webhookURL.searchParams.set('wait','true'); + await (0,node_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)(webhookURL.toString(), { method: "POST", headers: { "Content-Type": "application/json",