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

playing music legally

how can I play music which don't violate? are there any sources? I was using youtube and spotify to play the music but turns out they violate discord tos. please tell me some sources to play music without tos violation....

user presence

How can I get a user presence status with slash commands?

Play local file

is this enough to play an mp3 file ? ```js let connection; connection = await joinVoiceChannel({ channelId: message.member.voice.channelId,...

connection.receiver.createStream in v14

Is there something like connection.receiver.createStream in v14?

Error when selecting a radio with a selectmenu

Hello to all of you, I have an error with my bot discord, when I select a radio all goes well, but after several selection I have this error that appears and I do not understand why Thonkang ```yml 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 at new NodeError (node:internal/errors:387:5)...

Unable to require opus

Hi, I've installed the latest opus version yet I get the following error: