I'm having problems getting text from an API that just provides a string of text ((here)) and putting it in a response. It comes out as [object Response] when I post it, and the console.log doesn't show the content I want.
I'm using the following code:
fetch('http://taskinoz.com/gdq/api').then(
function(response) {
console.log(response);
throttledSendMessage(channel, response);
return response;
})
.catch(function(error) {
throttledSendMessage(channel, "An error has occured");
})