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

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...

Join Channel with different Client

How can I say that another Bot is joining the Channel and not the main Bot? (I have the token)

How to check if user is talking

I know I should use the SpeakingMap from @discordjs/voice, but idk how to set it up to work.

TypeError [ERR_INVALID_ARG_TYPE]: The "body" argument must be of type function or an instance of Blo

TypeError [ERR_INVALID_ARG_TYPE]: The "body" argument must be of type function or an instance of Blob, ReadableStream, WritableStream, Stream, Iterable, AsyncIterable, or Promise or { readable, writable } pair. Received undefined

How do I stop an autopaused audio player?

title. it doesn't look like audioPlayer.stop() does anything its state doesn't change to idle too this prevents the bot from shutting itself down...

how to detect audioPlayer is playing audio resource right now?

how to detect audioPlayer is playing audio resource right now?

How can I change audioresource's volume while playing?

How can I change audioresource's volume while playing?

AudioPlayer.playable includes undefined channels

I've noticed a bug that comes and goes infrequently where AudioPlayer.playable includes voice connections whose joinConfig.channelId references a channel that doesn't exist. For example, I would like to run some code for every active voice connection. I do this as follows: ```js audioPlayer.playable.forEach(connection => {...

what does joinVoiceChannel return when there's already an active voice connection?

so the guide says
If you try to call joinVoiceChannel on another channel in the same guild in which there is already an active voice connection, the existing voice connection switches over to the new channel.
does it return the same VoiceConnection object as before changing channels (therefore, it already has event listeners attached, if any) or is it a new VoiceConnection with the old one destroyed?...

Won't play the given Stream

```bash node:events:491 throw er; // Unhandled 'error' event ^ ...

Cannot Find Module

I think this has already been asked but i cannot seem to find the Answer. Error: Cannot find module 'E:\Docs\Dev\MoonAssist\node_modules@discordjs\voice\dist\index.js' This is the error i get. How do i fix that again?...

What library to use

I've been using Play-DL for a while but it keeps breaking pretty regularly. Is there a better one to use?

after some times, the bot retrieve an error

```AudioPlayerError: aborted at connResetException (node:internal/errors:704:14) at TLSSocket.socketCloseListener (node:_http_client:441:19) at TLSSocket.emit (node:events:525:35) at node:net:757:14...

How can I skip the resource being played by AudioPlayer to a desired position?

How can I skip the resource being played by AudioPlayer to a desired position? Do I have to use prism-media or opusscript?...

When I started playing music with my player, an error occur.

This is error: ``` AudioPlayerError: Did not find the EBML tag at the start of the stream at WebmDemuxer._readTag (/home/fyphen/bot/node_modules/prism-media/src/core/WebmBase.js:113:18) at WebmDemuxer._transform (/home/fyphen/bot/node_modules/prism-media/src/core/WebmBase.js:47:23)...