Bot doesn't stop playing

I'm trying to make a Music bot using spotify API but when i change the music the player doesn't stop and it plays the music after a while. The error is in the if statement but idk how to fix it :)) https://paste.learnspigot.com/ibefaduwod.js this is the current code i have now
LearnSpigot: Send and save code snippets on our pastebin
LearnSpigot provides a free web-based pastebin service for storing and sharing code snippets with anyone. Powered by hastebin.
3 Replies
d.js toolkit
d.js toolkit12mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
treble/luna
treble/luna12mo ago
first of all, spotify does not allow playback so i'm p sure whichever api you use just scrapes it off yt
Antostarwars
AntostarwarsOP12mo ago
oh, i didn't know that. I wanna support only spotify and souncloud because of the TOS can you recommend me a good api that doesn't break TOS? Ok I will. Thanks for your help but how can I fix this bug? then I will fix the TOS problem that I wasn't aware of because if I don't solve this bug there's no point in continuing to implement things damn
Want results from more Discord servers?
Add your server