Spotify to play music

What npm package is recommended to play spotify songs?
5 Replies
d.js docs
d.js docs2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Caneless
Caneless2y ago
npm
spotify-get
A isomorphic Spotify API client. Latest version: 1.1.10, last published: 4 months ago. Start using spotify-get in your project by running npm i spotify-get. There are no other projects in the npm registry using spotify-get.
Caneless
Caneless2y ago
I tried that https://sourceb.in/ODYAuJHL77 That is the code https://sourceb.in/TJgI270qb2 what toPlay is And error
Error: Node type 'track' does not exist!
at getNode (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1735:11)
at findPipeline (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1831:37)
at createAudioResource (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1917:31)
at playSpotify (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\Commands\Music\play.js:140:26)
Error: Node type 'track' does not exist!
at getNode (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1735:11)
at findPipeline (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1831:37)
at createAudioResource (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1917:31)
at playSpotify (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\Commands\Music\play.js:140:26)
https://www.npmjs.com/package/spotify-get package https://sourceb.in/ODYAuJHL77 That is the code https://sourceb.in/TJgI270qb2 what toPlay is And error
Error: Node type 'track' does not exist!
at getNode (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1735:11)
at findPipeline (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1831:37)
at createAudioResource (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1917:31)
at playSpotify (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\Commands\Music\play.js:140:26)
Error: Node type 'track' does not exist!
at getNode (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1735:11)
at findPipeline (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1831:37)
at createAudioResource (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1917:31)
at playSpotify (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\Commands\Music\play.js:140:26)
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Caneless
Caneless2y ago
Okay, then i know i should not do that