discord.js - Imagine a šŸ‘»

DIA

discord.js - Imagine a šŸ‘»

Support server for discord.js, a Node.js module to interact with Discord's apps API.

Join

djs-questions

djs-voice

TTS

i want to create a simple discord bot, that will read user messages in specific channel and bot will use TTS in voice channel to read user message. so basically if user joins - bot joins also and should play TTS with the message. but it doesnt work for me - bot joins after sending a message but its not playing TTS. any ideas? Code:...

Automatically join voice channel

when user click the text(see the attached image), should automatically join the voice channel Thank a lot...
No description

@discordjs/opus is not installing

I tried sudo, reinstalling node and readding discord.js to my package.json, nothing works, I am using the latest node js, npm, and latest discordjs version

Help with audio stream.

Im trying to make a bot which would capture the incoming audio from a voice channel and play it back in realtime, how can i do this?, i tried doing this but it didnt work ```js receiver.speaking.on("start", (userId) => { const opusStream = receiver.subscribe(userId, {...

doubt about voice status

whenever i create a connection with joinVoiceChannel why is the stauts sometimes "signalling" and sometimes "disconnected"

doubts about joinVoiceChannel

hey so i have a server which hosts multiple bots at the same time and if i want to specifically use joinVoiceChannel function on one of the bots which is running how can i do that?, is there any way to specify the client object which i want the function to use

i can't install @discordjs/opus

I try to install @discordjs/opus but i have this error Nodejs version : / 20.8.0 Windows 64 Bit Python 3.12 Discord.js version : 14.13.0...

ffmpeg EAGAIN

``` 23-10-2023 22:35:54 A: Error: spawn /home/container/node_modules/ffmpeg-static/ffmpeg EAGAIN at ChildProcess._handle.onexit (node:internal/child_process:284:19) at onErrorNT (node:internal/child_process:477:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {...

How loop music queue?

```js var channel = message.member?.voice?.channel; const connection = await joinVoiceChannel({ channelId: channel.id,...

[commonjs] Unexpected token

Hi šŸ™‚ I'm working on a Discord integration for Foundry VTT, and I'm having an issue with getting discord.js to play nice with my toolchain. I'm getting this error when I try to build: ``` yarn run v1.22.19 warning package.json: "dependencies" has dependency "discord.js" with range "^14.13.0" that collides with a dependency in "devDependencies" of the same name with version "^14.11.0"...

FAQ: Voice connection disconnects after a short time

Make sure you are using version 0.18.0 of @discordjs/voice or newer. āš ļø Check that this also applies to all voice-related packages that may use other versions! ```ansi npm list @discordjs/voice...

After 40/50 seconds it automatically disconnects

There is no errors in it, I'm using "discord.js": "^14.11.0", & "@discordjs/voice": "^0.16.0", Node version: v18.17.0 Is there any fixes?...

Bot suddenly stops playing music

when playing bigger songs, bot suddenly aborts ```Error: aborted at connResetException (node:internal/errors:717:14) at TLSSocket.socketCloseListener (node:_http_client:462:19) at TLSSocket.emit (node:events:525:35)...

Trying to convert audio to different format

Hello, I'm facing with an issue. I'm trying to convert the Opus audioformat to MuLaw, but idk how to do this. Any ideea ?

Recover audio and mute user

Hello I would like to be able to record audio in a voice room (and if possible only record what a user defined by id says) I have not found a clear explanation for version 14 of discord.js, could Can you explain to me how I can achieve my goal?

Is it possible to have 2 bots in voice channels in discord js?

I registered two clients. I attempt to connect each to a voice channel, and after the first bot connects, the second will not connect. Additionally, getVoiceConnection returns a voice connection when the second bot attempts to connect

Get existing connection with endpoint, token and session

Hello! I am currently working on a music bot which will have voice recognition capability i've gotten the music part to work (i use lavalink-client) and i've also gotten the voice recognition to work. Now my issue is, is having both work together. When a user does /play it establishes a connection through lavalink-client and lavalink-client doesn't give full voice connection data except endpoint, token and session so I was wondering how can i essentially tap in to that connection using tho...

The bot is stuck at the "connecting" state and not going to the "ready" state

I am really sorry for reopening. I tried adding the debug console but wasn't able to identify the error, I was convinced that it was fixed when I saw my bot enter the "ready state" on the debug console. But the thing is, the bot only enters the ready state when it leaves the vc, but it stays in connecting state when its in the vc

The bot is stuck at the "connecting" state and not going to the "ready" state

Hello, I am not really sure why the bot is staying in the connecting state and not moving to the "ready state" How do I solve this? If there is any additional info I need to provide, please let me know...
No description

Issues with getting an guild ID

Hello! I'm trying to receive an guild ID using the @discordjs/voice package, but everytime I try to request it it returns with undefined, so ofcourse it doesn't work. How can I make it work?