Spotify music bot not playing audio

Hey everyone, So after realizing both the youtube aspect and soundcloud aspect of a music bot is against TOS, i'v removed both parts of my code. But i've still not resolved the issue of it not playing audio at all. Everything seems to be working, but the bot it doesn't start playing audio when coming into the voice channel. I get no errors or anything. It joins, shows the embed of the current song playing, so it gets the song just fine but doesn't start playing audio. Also in the console i get the message that the audio playback has started even though it hasn't Here is a link to my code: https://pastebin.com/6K8H5WP9 There's a high probability that i did something wrong or forgot something, but i have no clue what. Anyways, any help would be greatly appreciated!
Pastebin
Spofity Music Bot - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
1 Reply
SamDizzle
SamDizzleOP17mo ago
Discord.js v14.11.0 Node.js v18.16.1 Oh okay, so just to clarify, basically the only way to make a music bot that doesn't violate any TOS and actually plays music is by using local files i have the rights to? Btw, i've also tried using local files with the same code but the bot still isn't playing any audio, so i'm guessing i'm still doing something wrong or forgot something in the part of my code that actually plays the audio. Okay so i removed the second player that was inside of the interactionCreate, since i don't think i actually needed it. But i still get no audio sadly enough. Oh shit, i just made a mistake with the file path the local files are working now, Thanks!
Want results from more Discord servers?
Add your server