diff --git a/src/modules/misc.js b/src/modules/misc.js index 5731181..822294d 100644 --- a/src/modules/misc.js +++ b/src/modules/misc.js @@ -406,11 +406,13 @@ generate.callback = async function (msg, line) { if (!line || line.length === 0) return "Arguments required."; let request = await fetch("https://backend.craiyon.com/generate", { + method: "POST", headers: GENERATE_HEADERS, body: JSON.stringify({prompt: line}), }); while (request.status !== 200) { request = await fetch("https://backend.craiyon.com/generate", { + method: "POST", headers: GENERATE_HEADERS, body: JSON.stringify({prompt: line}), });