Bot joins channel but does not play audio
The reason I fetch from the API is self explanitory - https://pastebin.run/63p-4pc6t9wr
pastebin.run
const {
EmbedBuilder,
ActionRowBuilder,
StringSelectMenuBuilder,
ComponentType,
} = require("discord.js");
const {
joinVoiceChannel,
createAudioPlayer,
createAudioResource,
} = require("@discordjs/voice");
const …
8 Replies
- 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 OP[email protected] /home/ollie/coding/radiostats/bot
└── [email protected]
node -v = 21.5.0
Its a mp3 stream link
Even with the necessary additional depencies it does not play anything:
I get the playing audio console log when the state changes but no audio actually comes through the bot
it wont play local audio either
Any ideas as I am stumped
@Qjuh ?
It stays in the playing state
I had it on logging idle state too before and it did not
Okay thats new, when I had it on idle logging in never logged but now I get https://i.ollie.cloud/omUgBk.png
Yes the connection is subscribed to the player
But when I tried a local file it did the same thing, thats why I am confused
is the current one at the moment
Path is correct I have console logged it so I shall try reinstalling ffmpeg
I have reinstalled it and still nothing
- npm:
npm install ffmpeg-static
- Install: Download | chocolatey | homebrew | your distributions package manager
- Tutorial: YouTube
- ffmpeg-binaries is deprecated, uninstall it with npm rm ffmpeg-binaries
I have reinstalled it using this too but has not worked
Turns out I forgot to enable the voice intent