this is my code:
return fetch("https://www.motiondevelopment.top/api/v1.2/bots/" + botid + "/stats", {
method: "post",
headers: {
"Content-Type": "application/json",
"key": apikey,
},
body: { "guilds": serverNumber }
}).then((response) => {
return response.json().then((data) => {
return data;
}).catch((err) => {
console.log("[MotionBotList]: " + err);
})
});
At the moment it will not use the content-type application/json and I don't know why. Could someone help please?