node-spotify icon indicating copy to clipboard operation
node-spotify copied to clipboard

Output Search Info

Open wc3717 opened this issue 7 years ago • 1 comments

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}`)

});

}`

wc3717 avatar Feb 28 '18 05:02 wc3717

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

WombleWoo7547 avatar Jun 08 '24 15:06 WombleWoo7547