node-spotify
node-spotify copied to clipboard
Output Search Info
When I output the search results my Discord bot says [object, Object]. Here is the code
if(command === "search") { var spotify = require('spotify'); let song = command[1]; spotify.search({ type: 'track', query: ${song}` }, function(err, data) {
message.channel.send(`${data}`)
});
}`
A bit late but:
message.channel.send(`${JSON.stringify(data)}`);
It's a little jank and you should properly format it but for dev purposes do this