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

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

Cant play the same audio resource again

Hello i'm trying to make a bot that plays audio when someone enters the same voice with the bot here is the code https://pastebin.com/M45Ukbu7 it plays it onve when i enter but does not when i leave and rejoin instead i get this error
Error: Cannot play a resource that has already ended.
Error: Cannot play a resource that has already ended.
...

How to make a slash command allowed to be used in user dms and external servers

Title says it all, I have no clue on how to pull something like that off. Can someone point me in the right direction? Thanks in advance!

Getting this error when booting up the bot.

package.json: ```js { "name": "someshit", "version": "1.0.0",...
No description

How to include silence in vc recording

I’m trying to record a vc, I’m using this and the module mediaplex for the opus encoder: ```js const listenStream = connection.receiver.subscribe(member.id, { end: {...