djs-voice

1170 threads · Page 2 of 24

Slash commands 3 messages
radiant creek I'm new on discord.js server and i want to knoe hot to create slash commands using that library?
streaming from url 1 messages
stuck shadow does anyone have code for a bot that streams sounds from given url (/live)
Discord voice doesn't play remote audio on linux 12 messages
wary parcel I have a weird behavior where playing audio from an URL works on my windows PC, but doesn't on my linux server. Basical...
998946512144969748
How to use setTransportOptions to set voice bitrate, and 2 channel stereo 2 messages
warped tendon There has been a recent update to discord in which updateVideoQuality has stopped working as a way to hook, and setTrans...
Decoding Opus packets from `AudioReceiveStream` using @discordjs/opus 26 messages
open elm I have a problem with decoding Opus packets received from AudioReceiveStream using OpusEncoder from @discordjs/opus. Whe...
998946512144969748
Bot enters the voice channel but does not play local mp3 file 3 messages
brisk lichen on VoiceStateUpdate event I have this code: ``` const connection = joinVoiceChannel({ channelId: newState.channelId, ...
Audio player suddenly ends. 3 messages
echo bridge Audio.ts code: https://pastebin.com/WJ3TvyVc Files: picture Error: ``` 2025-02-13T16:55:53.365Z | TypeError: Cannot read...
Player plays fine using string but not via createReadStream 16 messages
scarlet dawn No error is thrown either. Report: ``` Core Dependencies - @discordjs/voice: 0.18.0 - prism-media: 1.3.5 Opus Libraries...
Errors compiling discordjs/opus for ARM64 with gcc14 3 messages
opaque sky Is anyone else able to compile the opus bindings for ARM64 with gcc14? Getting the following gyp error: ```js npm error ...
Player State = idle 5 messages
vocal hatch Why does the track ends automatically after some time of starting. It's a live stream url. It plays fine for few secs/mi...
No audio on Windows 11 when playing mp3 file 22 messages
pearl folio (following the official guide in https://discordjs.guide/voice/audio-resources.html) I was setting a simple command for...
RangeError: offset is out of bounds [@discordjs/opus] 24 messages
rain tree Gathering a RangeError when attempting to play a shoutcast live stream [AUDIO ONLY], the bot has been playing stations l...
998946620345434174
Inline Volume not working after starting to play the resource 3 messages
olive trout Hey, I have a problem. The inline volume seems to not work after playing the resource. It was working before but now i...
Am I missing something completely? 3 messages
wintry locust Bot will join voice channel but wont play music. ```js const { SlashCommandBuilder, userMention, VoiceBase...
No audio on Ubuntu 24.04 31 messages
slow flax Hey everyone. I Have installed the newest versions avaliable basically and ubuntu does not like npm install @discordjs/o...
998946512144969748
No music playback on arch linux. 85 messages
merry vector Hey I'm on a arch linux pc, and when I try to do playback of an url the bot just joins the voice channel, goes into Play...
998946620345434174
Trying to make my bot play .mp3 for directory 13 messages
formal jacinth Hi ! My bot is successfuly doing everything exept playing any sound : If anyone have an idea .. 🙂
Error with createAudioResource() 26 messages
feral sequoia hey, i would like some help for my discord bot, i have been trying to code music command to play music in voice channels...
Query 3 messages
brave eagle How to update volume of a running audio track also to seek it? I checked out the docs, didn't help me.
Audio Issues 12 messages
brave eagle ```js if(!args.join(' ')) return message.reply("Please type song name."); let api = require(process.cwd()+'/...
Audio not playing despite properly retrieving URL to audio. No errors. 42 messages
jolly willow I'm trying to play a song through a URL (not YouTube) and despite the URL ending with `.ogg` (i even tried with `.mp3`),...
998946512144969748
Not emitting audio received from websocket (webm opus) 8 messages
young kindle I'm trying to make a voice bot PoC that takes browser audio stream (webm opus) and sends it over websocket to be spoken ...
Add FFmpeg Args when creating an audio resource 16 messages
olive trout Hey, I would like to know if it's possible to parse ffmpeg args to the ffmpeg conversion when creating an audio resou...
My bot doesn't play music sound 8 messages
obtuse jasper I tried several ways and still my bot is not playing the music sound on discord, I will send how my pathetic code is: `...
998946512144969748
IP discovery - socket closed 2 messages
daring garnet Yo guys i have this error on my cmd without this my bots work but sometime when i try to play a music the bot leave the ...
IP discovery - socket closed 2 messages
daring garnet ``` [Error_Handling] :: Unhandled Rejection Error: Cannot perform IP discovery - socket closed at Socket.<anonymou...
Commands fail to load / refresh if I require client 5 messages
earnest hare I'm messing around with discord.js and trying to build a music bot that plays songs off deezer. Though, I've run into an...
Opus is missing node-gyp how to fix 9 messages
graceful adder Opus is missing node-gyp how to fix
Receiving Channel Audio 1 messages
graceful adder Hey Guys, I would love to receive channel audio. But i dont find anything working for me. Regards
Bot connect but doesnt play anything 10 messages
worthy comet These are my dependences: Core Dependencies - @discordjs/voice: 0.18.0 - prism-media: 1.3.5 Opus Libraries - @discordj...
Bot does not play any music, with no error message at all 8 messages
glacial stone it just shows application did not respond on discord, but no error message in terminal ``` export async function execute...
Audio from websites other than a file 22 messages
strange light I'm new to the discord.js voice section, and I was wondering how to make the bot play music from other websites for exam...
998946620345434174
Detect Move 3 messages
cold jungle How to detect if a member moved from a voice to another i tried using: ```if(oldState.channelId !== null && newState.cha...
not playing 3 messages
haughty locust ```js const voiceChannel = interaction.member?.voice.channel; const connection = joinVoiceChannel({ channelId...
Getting poll results. 9 messages
restive tapir Hi there, I am trying to make a bot that makes a poll and then responds with the winning answer to the poll, How do i do...
vulnerable dependencies versions 16 messages
rose knot When can we expect the dependencies to be updated?
can we edit the voice channel status ?? 10 messages
feral orchid How can we set the voice channel status to song title
Player state changes to "playing" when resource ends 13 messages
fickle spade Whenever I play a resource, I need to be able to detect when said resource stops playing in the player I play it with. ...
encryption does not work 3 messages
humble canopy I am using the latest discord.js/voice 0.18.0 and sodium-native@3.4.1 but unfortunately when the bot joins the voice cha...
Bot don't join VC (err: TypeError: Cannot read properties of undefined (reading 'set') ) 6 messages
hard crescent When i try to do this ```js const connection = joinVoiceChannel({ channelId: channel.id, guildId: channel.guild.id...
Typescript complains about adapterCreator after upgrading to v0.17.0 5 messages
rancid trench i updated `@discordjs/voice` from `0.16.1` to `0.17.0` and `discord.js` from `14.14.1` to `14.16.3`, and now this snippe...
The bot says it's playing the audio but I can't hear anything on discord. 1 messages
thorny crag ```ts import { createAudioPlayer, createAudioResource, joinVoiceChannel, NoSubscriberBehavior, AudioPlayerSt...
@discordjs/opus: make: g++: Command not found 3 messages
unreal yacht @discordjs/opus doesnt install via NPM, Gives error: make: g++: Command not found Im using a oracle linux cloud VM, I h...
998946512144969748
bot leave voice channel after a while 20 messages
cold jungle My bot leaves voice channel after a while so i let him join the vc every 30m but it works only on one server it doesn't ...
i have an arraybuffer how can i trasform it to use in createAudioResource()? 71 messages
opal hemlock help
Play audio problem 83 messages
patent jewel Hello, I have a problem with the "@discordjs/voice" package, and the problem is in playing the sound. Well, to understan...
FAQ: Cannot play audio as no valid encryption package is installed (After installing sodium-native) 1 messages
empty swallow Can someone help me on this issue? The `sodium-native` is already installed, but the `@discordjs/voice` still didn't rec...
ffmpeg potential memory leak 8 messages
olive trout Hello, so I'm here because I m searching what's causing these ffmpeg execution to be kept 2 hours in memory. So as I k...
How do you get a voice channel's user list? 2 messages
ancient torrent Hi, I'm building a bot that: can join a voice channel on slash command and: start recording the list of users that are i...
AudioPlayer goes from buffering -> playing -> idle and warns that resource is not playable 8 messages
wide river Hi, I have troubles for the last months with playback of resources. The source is available at https://github.com/manuel...