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
d.js toolkit
d.js toolkit10mo 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 OP
Ollie
OllieOP10mo ago
[email protected] /home/ollie/coding/radiostats/bot └── [email protected] node -v = 21.5.0 Its a mp3 stream link
d.js docs
d.js docs10mo ago
:guide: Getting Started: Introduction - Installation > Extra Dependencies read more
Ollie
OllieOP10mo ago
Even with the necessary additional depencies it does not play anything:
Core Dependencies
- @discordjs/voice: 0.16.1
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: not found
- opusscript: 0.0.8

Encryption Libraries
- sodium-native: not found
- sodium: 3.0.2
- libsodium-wrappers: not found
- tweetnacl: not found

FFmpeg
- version: 5.1.4-0+rpt1+deb12u1
- libopus: yes
Core Dependencies
- @discordjs/voice: 0.16.1
- prism-media: 1.3.5

Opus Libraries
- @discordjs/opus: not found
- opusscript: 0.0.8

Encryption Libraries
- sodium-native: not found
- sodium: 3.0.2
- libsodium-wrappers: not found
- tweetnacl: not found

FFmpeg
- version: 5.1.4-0+rpt1+deb12u1
- libopus: yes
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
Ollie
OllieOP10mo ago
Okay thats new, when I had it on idle logging in never logged but now I get https://i.ollie.cloud/omUgBk.png
Ollie
OllieOP10mo ago
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
const resource = createAudioResource(path.join(__dirname + "/../utils/cool.mp3"), {inlineVolume: true});
const resource = createAudioResource(path.join(__dirname + "/../utils/cool.mp3"), {inlineVolume: true});
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
d.js docs
d.js docs10mo ago
- 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
Ollie
OllieOP10mo ago
I have reinstalled it using this too but has not worked Turns out I forgot to enable the voice intent
Want results from more Discord servers?
Add your server