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
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.
Was this page helpful?