I'm not actually sure, foodoo logged twice, one time it has its content, and the other time it doesn't. I only send one message, so not sure why foodoo is logged twice?
async sendMessage (channelId, body) {
console.log("choo: ", body)
return await rest.post(rest.routes.channels.messages(channelId), {
body,
files: body.files
});
},
async post (url, options) {
console.log("glue: ", options)
return camelize(await rest.makeRequest('POST', url, options));
},
async makeRequest (method, route, options) {
console.log("foodoo: ", options)
...
public-discord-bot:dev: choo: {
public-discord-bot:dev: content: '222',
public-discord-bot:dev: files: [ { name: 'application.txt', blob: [Blob] } ]
public-discord-bot:dev: }
public-discord-bot:dev: glue: {
public-discord-bot:dev: body: { content: '222', files: [ [Object] ] },
public-discord-bot:dev: files: [ { name: 'application.txt', blob: [Blob] } ]
public-discord-bot:dev: }
public-discord-bot:dev: foodoo: {
public-discord-bot:dev: body: { content: '222', files: [ [Object] ] },
public-discord-bot:dev: files: [ { name: 'application.txt', blob: [Blob] } ]
public-discord-bot:dev: }
public-discord-rest:dev: foodoo: { body: {} }
public-discord-rest:dev: [REST] error on url: /channels/1094692973918306325/messages
public-discord-rest:dev: {
public-discord-rest:dev: ok: false,
public-discord-rest:dev: status: 400,
public-discord-rest:dev: body: '{"message": "Cannot send an empty message", "code": 50006}'
public-discord-rest:dev: }