discord.js - Imagine an app

DIA

discord.js - Imagine an app

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

Join

djs-questions

djs-voice

After disconnecting once, audio starts audibly buffering

Here is part of my /play command: ```ts const connection = joinVoiceChannel({ channelId: interaction.member.voice.channelId,...

member.voice.channelId undefined on client ready.

hola senores, any reason why my bot can't "see" a member's voice channel data when it turns on? for example, the channel id is undefined until said user leaves and rejoins the channel. is this a caching issue? and if so, how can I update the cache immediately after turning the bot on? thanks in advance!

RTC region Null

https://cdn.uira.xyz/acoustic/uEPKgU.png only happens when u select a automatic region aslong as u assign a region it doesnt show null any fixes?...

Type 'InternalDiscordGatewayAdapterCreator' is not assignable to type 'DiscordGatewayAdapterCreator'

```json // package.json "dependencies": { "@discordjs/voice": "^0.17.0", "@prisma/client": "^5.20.0",...

Trying to play a clicking sound effect in a voice channel, however I get this instead.

Hi, My @discordjs/voice version is 0.7.5 and I'm having a slight issue with playing it. I've tried to install ffmpeg by using sudo apt install ffmpeg, however, no luck. Here's my playClickSound function:...
No description

how to set voice channel status?

i looked through the documentation and cant find a way to set voice channel status unless i missed seeing it is there any way i can do this?...

need help with this code

Hey, I’m tryna make a bot that checks for a specific keyword within someone’s custom status and if they have the keyword, it gives them a role, and if they don’t, it removes the role. The code is semi working, it’s logging in the console every time someone changes there status but isn’t logging when it is the correct status. and removes the role even if it’s the wrong or right status.

AbortError: the operation was aborted

I've been getting this error for a while now (I'm on the latest DJS version 0.17.0 atm but I believe this has been occurring well before that). It appears to be occuring randomly, and I've only recently started potentially correlating it to a full bot crash for me. Any help is greatly appreciated.
No description

what does this error mean?

``` C:\Users\SETUP GAME\Documents\project v6\VR community\node_modules@discordjs\voice\dist\index.js:362 this.socket.once("close", () => reject(new Error("Cannot perform IP discovery - socket closed"))); ^ ...

voice is playing on local but not on server

Hi Ive got a problem with this code: ```js if(interaction.commandName === 'musicradio') { const { createAudioPlayer, createAudioResource, joinVoiceChannel } = require('@discordjs/voice');...

YTDL AudioPlayer.play gives error

Hello! Trying to replicate a pseudo music bot from links with YTDL The bot enters in channel, but then returns the error: Error: Cannot play a resource that has already ended. Code: ``` var connection = voice.joinVoiceChannel({...

Bot plays audio sped up

```ts const player = createAudioPlayer(); const connection = joinVoiceChannel({ channelId: channel!.id, guildId: guild.id,...

Bot disconnects after rejoining.

I'm changing vc of my bot but it immediately disconnects after rejoining... how should i fix it ? I have enabled GatewayIntentBits.GuildVoiceStates Already
No description

Random latency spikes?

Is something not optimized in my code? I'm trying to allow two server vcs to connect (by transferring the audio of one to the other) but sometimes it stops working for about 10 seconds then starts up again.

player not work

```js try { const VoiceConnection = joinVoiceChannel({ channelId: newState.channelId, guildId: newState.guild.id, ...

Voice reqs

I tried to test a tts code and looks like djs vooice requires ffmpeg, i cant download anything rn so im curious if theres any package that i could use as ffmpeg or sum like that

Receiving this error when I'm trying to join the voice call.

Hi, I'm trying to use the example as used in https://github.com/discordjs/voice-examples/blob/main/recorder/src/, however it's not working as in it's joining the vc, it's not saying that it's ready, it times out then says ready. Then, it gives me this error, which I don't really know how to fix....
No description

How can I have a "real time conversation" as a bot?

Hi, I'm trying to pretty much have a real-time conversation with a bot (powered by AI), and I'm trying to figure out how I can really do this. Maybe I can do it by voice activity (like the green bar) or by sensitivity? Please let me know for ideas! Would be amazing....