Audio not playing

ok so i am trying to transmit a audio file into the voice channel but the bot only is able to join the channel and is not transmitting anything heres the pastebin of code: https://pastebin.com/Rdg2Qut5
Pastebin
const {SlashCommandBuilder} = require('discord.js');const {entersSt...
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 toolkit16mo 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!
sometroller77
sometroller77OP16mo ago
1)
DiscordBot@ D:\Coding\JS\Projects\DiscordBot
DiscordBot@ D:\Coding\JS\Projects\DiscordBot
node version v20.5.0
Jay
Jay16mo ago
you put a single backslash before Downloads on the path. that may be your issue
sometroller77
sometroller77OP16mo ago
tried it but not working! this is my dependency report
--------------------------------------------------
Core Dependencies
- @discordjs/voice: 0.16.0
- prism-media: 1.3.5

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

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

FFmpeg
- version: 5.0.1-essentials_build-www.gyan.dev
- libopus: yes
--------------------------------------------------
--------------------------------------------------
Core Dependencies
- @discordjs/voice: 0.16.0
- prism-media: 1.3.5

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

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

FFmpeg
- version: 5.0.1-essentials_build-www.gyan.dev
- libopus: yes
--------------------------------------------------
code: https://sourceb.in/2OsyUPYuji alr got the issue, it was not waiting for the audio to stop and instead destroying the connection without playing the audio solution was to remove connection.destroy()
Want results from more Discord servers?
Add your server