Discord bot not playing audio

Hey everyone, i just created my first discord music bot (or did my best attempt since i'm very new to discord.js or javascript in general.) Everything seems to be working but the bot it doesn't start playing audio when coming into the voice channel. I get no error messages or anything. It joins, shows the embed of the current song playing but doesn't start playing audio. Also the buttons don't work as they just say that the interaction failed. But honestly i can live with that. I just want the audio to start playing lol. Here is a link to my code: https://pastebin.com/Z0WaFsUQ There's a high probability that i did something wrong or forgot something, but i have no clue what. Any help would be greatly appreciated!
Pastebin
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.
4 Replies
d.js toolkit
d.js toolkit17mo 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. - Issue solved? Press the button!
SamDizzle
SamDizzleOP17mo ago
Discord.js v14.11.0 Node.js v18.16.1
treble/luna
treble/luna17mo ago
#djs-voice would be better if its djs voice related at all
SamDizzle
SamDizzleOP17mo ago
Oh okay i'll post it over there then. Thanks
Want results from more Discord servers?
Add your server