discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discords apps API.

Join

djs-questions

djs-voice

Audio Dying after some Minutes of Playback

My Audio dies after some minutes of playback of a mp3 stream

Pipe something into a AudioReceiveStream

I'm trying to pipe a stream into an AudioReceiveStream: ```let opusStream = new AudioReceiveStream({ end: EndBehaviorType.Manual });...

How do I create a continuous opus stream?

I want to pipe data into an opusstream and play that opusstream continuously so can then do something like this. Only way I see doing that is through receiver.subscribe(...); but in my case, it's not really practical. Here is a small example of what I want to do: let opusStream = //what do I enter here? mixer.pipe(opusStream); ...

Bot stops listening after 1 minute

I am currently working on a Discord bot which has the purpose of listening to what other people say. I got it to repeat whatever users say into their microphones through a receiver. Since there is no speaking event anymore, that made things more difficult but thats not what I want to ask. I realized that when the bot stops receiving inputs from the users and thus does not play audio anymore, after one minute it fires a "voiceStateUpdate" event on the bot. Logging both oldMember and newMember does not give me any more information, since they are both identical logs: client.on('voiceStateUpdate', (oldMember, newMember) => {...

How can I play live audio stream?

I want to install the function like Jockie Music' s radio function

Play from mp3

Hi, anyone can give me an example of playing a mp3 file from filePath with my discord bot using discord voice. Thanks...

Cannot perform IP Discovery - socket closed

I am getting this error ```reject Promise { { ip: '88.198.37.107', port: 44860 } } Error: Cannot perform IP discovery - socket closed at Socket.<anonymous> (/home/container/node_modules/@discordjs/voice/dist/index.js:351:46) at Object.onceWrapper (node:events:641:28) at Socket.emit (node:events:539:35)...

AudioPlayer plays audio about 30s and stop working. Some time it doesn't play any audio.

AudioPlayer plays audio about 30s and stop working. Some time it doesn't play any audio. My code is okay...

70/74-byte UDP packets

Hey there, I was wondering if the voice package is sending 74 byte UDP packets or 70 byte UDP packets? Discord says that they are deprecating sending 70-byte voice packet in replacement for 74 byte UDP packets and so I was wondering which type the package sends currently.

audio problem

i have this problem: in the middle of the mp3 you can no longer hear my bot in the channel. after that you don't hear it until I restart it or i restarted discord. But today everything was going well until it suddenly started. What could be the cause?

Connection VS Player

When the connection is destroyed does the player also get destroyed or do I have to destroy that as well?

Why is there no musik?

What's wrong? I am using discord.js 14.7.1

Audio Resource Playing on Client but not on server.

When I host my bot that streams music from my website it plays but if I push it to the server it joins the vc but does not play the music. Has all the same node dependencies and does not produce any error in console. Any Ideas?...

How can i loop an audio resource?

I've tried this ```ts client.audioPlayer.on(AudioPlayerStatus.Idle, () => { if (!client.audioPlayer) return; client.audioPlayer.play(client.waitaudio); });...

get screenshots of streams?

is it possible to get screenshots of current streams? or even better, to stream their video elsewhere?

Voice Audio Detection Problems...

Hey, I run a bot which uses the voice packages audio receiving system. I've noticed a problem that appear to occur randomly where the built in VAD (voice audio detection) system appears to stop working at times. The only way to bypass the issue is to have the user manually mute and unmute to trigger the starting and ending of the stream. Anyone else experiencing something like this and is this a known problem? I'll open a Github issue if I don't receive a response soon.

How do I detect once the music has finished (djs v13.12.0) [Solved]

I have messed around with the player.on() function with createAudioPlayer and such but I can not find a solid way to loop it? Heres my code: ```js...