const fetch = require('node-fetch');
const fs = require('fs')
var data = fs.readFileSync('2.png', 'utf8')
var URL = "apikey";
fetch(URL, {
"method":"POST",
"headers": {"Content-Type": "application/json"},
"body": data
})
.then(res=> console.log(res))
.catch(err => console.error(err));
how can I send images via discord webhook? I have tried the above and it does not work. and there are no proper examples on discord docs.