djs-voice

1170 threads · Page 11 of 24

how to set and track audio player states? 21 messages
rough dagger hi there, im learning data structures and algorithms and i thought it would be a nice exercise using them in a discord b...
Can someone help me with managing audioplayers (streaming different audio to each server same time) 5 messages
golden sparrow I want to manage multiple audio players and handle events on them but so far unsure how I can actually handle the events...
bot joins to voice channel, doesn't play any sound, times out and disconnects 17 messages
rough dagger hi there! im following the basic example repo, although is a common error, i wonder, since i basically have the same cod...
Bot says it joined the VC, but it doesn't 3 messages
idle osprey I've tried to figure out why the bot will not join, despite it saying it does. Is there any obvious issues with my code...
TypeError: Cannot create property 'audioPlayer' on string 'study' 36 messages
amber scroll Hello so I noticed something my bot crashes after a while because of the module. I'd like to know how to prevent it from...
998946512144969748
Sound stop playing after 30-40 seconds 47 messages
lethal kindle -
Listen to user vocal input using connection 22 messages
slow belfry hey, i couldn't find any reliable form of making the client listen to vocal input when its connected. can i have some gu...
playing audio from a https url seems to be broken 7 messages
high mauve I use separate services to generate and then play audio, this seems have broken. Using http://genericlocalip:3000/audio....
pls help me 11 messages
bronze garnet https://sourceb.in/HqHVMUHIqq so i am unable to fetch the webhooks from my client i want to make a bot announcement ju...
im getting the classic AudioPlayerError: aborted. 15 messages
slow belfry Error: ```javascript AudioPlayerError: aborted at connResetException (node:internal/errors:691:14) at TLSSocket...
another bot not joining the voice channel 7 messages
rough dagger Hi there, im learning my way through the docs and making my first bot, i was following line by line the basic example re...
Weirdest bug i've encountered, probably need a discordjs/voice contributor help here. 4 messages
slow belfry Hello, i made a discord player for playing music and tts messages. the youtube way: get stream from ytdl with filter au...
Issues installing @discordjs/opus 8 messages
subtle zephyr I get this error; ``` error D:\Projects\discordjs\test-bot\node_modules\@discordjs\opus: Command failed. Exit code: 1 C...
AudioPlayerError: Write EPIPE when using Prism FFmpeg 4 messages
loud basin I'm using `prism-media` to decode an Opus stream and apply audio effects, but I seem to be getting an error regarding so...
Bot not joining voice channel 13 messages
chilly gazelle djs v14, voice 0.16 ```js const connection = joinVoiceChannel({ channelId: interaction.member.voice.channel...
Destroy player when session is finished. 4 messages
slow belfry Hello, i wanted to know if there's a way for the player to stop playing completely once i've finished with my session ma...
Bot disconnects from vc after a few days on external host 5 messages
raven lynx My bot disconnects from a voice channel after a few days (no specific number). At the same time, the bot's presence gets...
AbortError: The operation was aborted 22 messages
tropic fossil I have a bot, which is playing music. It connects to the channel and also plays the music but sometimes there is the fol...
"Invalid Form Body" Username cannot contain "discord" on /join command 6 messages
tiny pine Steps to reproduce. 1. Clone the latest discordjs/voice-examples.git 2. Copy Recorder example to new folder 3. Create c...
[SOLVED] 🤦Bot doesnt join the voice channel 23 messages
rigid walrus So I have the following code, when its being executed, the bot doesnt join the voice channel. ```js const { joinVoiceC...
998946512144969748
Sound stops after a few seconds and then no other sounds work 6 messages
rustic sundial Hi, sorry if this has been asked before. I am trying to play an mp4 soundclip via discord voice channel, it works, but a...
Audio Resource not playing 10 messages
acoustic hare For some reason this wont play the audio i tried installing the ffpeg package thing but still wont work! ```js const se...
How do I make an event listener for when someone speaks? 6 messages
ionic frost I want to make an event listener similar to how the make events in the discord.js guide const { Events } = require('dis...
subscribe a connection and convert pcm buffer response to mp3 46 messages
sullen goblet Hi ! I want to convert this result : ```js const receiver = connection.receiver.subscribe(userId, { mod...
Incorrect client joins channel when using joinVoiceChannel() 9 messages
woeful hill discord.js@14.11.0 npm v18.16.0 I have multiple clients logged in and I am trying to connect specific ones to different...
Discord.js | Playing Music 14 messages
grizzled quartz This joins channel but not streaming music. ```js const { joinVoiceChannel, createAudioResource, createAudioPlayer } = r...
Playback ends after 20 seconds without any erros emitted 28 messages
bitter trail Code: ```js connection = await joinVoiceChannel({ guildId, channelId: this.voiceCha...
ETIMEDOUT on port 443 3 messages
wispy slate ``` error occurred joining voice channel: Error: connect ETIMEDOUT 165.21.111.144:44 3 at TCPConnectWrap.afterConnec...
[SOLVED] Playback ends after ~1 minute without any errors emitted 23 messages
woeful hill Title. It sometimes becomes Autopaused, sometimes not. It eventually becomes Idle after a few minutes. No errors are emi...
Generate opus stream as chunks 2 messages
tribal torrent `export function createListeningStream(receiver: VoiceReceiver, userId: string) { const opusStream = receiver.subsc...
Voice_CONNECTION_TIMEOUT 2 messages
sharp igloo hey, for explitbot js verzion when i use ?play (any song) it joins the channel and doesnt play and in console it sends t...
RequestAbortedError [AbortError]: Request aborted 2 messages
Error when playing ytdl 6 messages
blissful bronze Hello I am having problem with playing a youtube link converted to mp3 in voice channel
1038824730079273010
Bot joined in channel but is fullmuted, why? 20 messages
paper charm In voice channel my discord bot is fullmuted, so he cant play a sound. Is there a simple fix? ``` const { joinVoice...
Audio Player state changes to playing when resource ends 5 messages
hollow venture I am creating an audio resource from a ytdl download, and when I play this resource on the player with `player.play(reso...
Recorded ogg audio is not able to be played 4 messages
blazing storm Hi all! Working on a project that involves recording conversations in a VC. We have a setup that gets us to the point w...
Player does not play AudioRecource if it played before 5 messages
charred locust I have a function that can play Audio in a VoiceChannel and i have 2 options: 1. to play a single audio file 2. to play...
ERR_SOCKET_CONNECTION_TIMEOUT when trying to play audio in a channel 13 messages
tiny quartz Sometimes when I try to play music with my music discord bot i get this error: ``` node:internal/process/promises:289 ...
998946512144969748
Won't play if source takes long to send more data 2 messages
hexed minnow When trying to play a big stream, which the speed is 30kbps, I was getting an issue where djs voice would send a trackEn...
im trying to play some audio files and sometimes my bot crashes midway 1 messages
modern stirrup im trying to play some audio files and sometimes my bot crashes midway and gives this long error that says `AudioPlay...
Can't get user's audio stream if the stream is too long 2 messages
tacit cairn So I'm trying to do a recorder bot, but when the user says something too long, probably about 4-5 seconds. It just hang ...
Error while installing @discordjs/opus 14 messages
stable oracle I believe I have installed build tools when I installed node & I have also tried running `npm install --global --product...
998946512144969748
joinVoiceChannel won't join the voice channel 26 messages
silent quail ```ts const queue = new MusicPlayer({ interaction, textChannel: interaction.channel! as TextChannel, ...
Determine duration of audio stream of the receiver. 1 messages
tacit cairn How do I determine duration of the audio stream for the receiver? The `start` event is triggered even if the user speaks...
how to get if the player is already created in a guild 8 messages
wide tundra there is the `createAudioPlayer()` funcion but just a question if there is a `getAudioPlayer()` function to get the audi...
998946512144969748
cannot install @discordjs/opus 8 messages
998946512144969748
Won't play please help 1 messages
sour horizon ```js const { joinVoiceChannel } = require('@discordjs/voice'); let channel = '1107089389345067008'; jo...
998946512144969748 998946620345434174
How do you get the current voice channel ID of the bot? 3 messages
fossil hull I'm trying to make sure that bot and the user are in the same voice channel. I used to use message.guild.voice.channel.i...
getting the member 17 messages
solid wadi how to get the member who disconnected the bot
voice stop after 1min 36 messages
real frost <:waitWhat:230083889018830848>