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

redirection voice from one channel of guild to another channel in another guild

My code now: ```js const connection = voiceData.connection; const channel = message.member.voice.channel...

Node.JS V20.X with Oups

Hi ! It's compatible with Node.JS v20.x ?...
No description

Bot doesn't stop playing

I'm trying to make a Music bot using spotify API but when i change the music the player doesn't stop and it plays the music after a while. The error is in the if statement but idk how to fix it :)) https://paste.learnspigot.com/ibefaduwod.js this is the current code i have now...

Discrepancy between .playable and .subscribers

Just curious to why this is. I've noticed that, after the bot has been running for some time, a discrepancy will manifest between these two lines of code. The expected behaviour is that both lines of code would output the same thing; the number of VoiceChannels that is playing/subscribed to a given AudioPlayer. ```js...

Problem installing @discordjs/opus on ubuntu 22.04

Hey, when i try to install opus package i got this error
No description

Forward audio

I guess @discord.js/voice don't have this functionality. I also didn't find on SO or Discord. Do you have plans to add? I know it's difficult because audio packets might have different formats. It's hard to detect I could edit the buffer and play again instead, but that seems like a workaround...

Bot doesn't stop playing if I try to change what it's playing

I use a slash command to obtain a keyword to search on youtube and it works, but if I try to use the command a second time it downloads the new audio but does not change to playing it immediatly, instead it continues playing the old track for around 10-20 seconds and then starts playing the new song. Code: ```javascript try { if (!interaction.options.getString("keyword")) interaction.reply("No prompt given");...

Bot connection state ready but sometimes i don't hear it

Hi sometimes my bot don't speak but the connection state is ready, rn i have a voice channel where i have this bug and can hotswap code, is there anything that i can send so we can debug that?

How do I fade audio out?

I have audio playing but I'm trying to fade it out instead of just having it immediately turn off

Problem with voice

Hi, I want to play music through a bot and I did it on my computer, but when I transfer files to the Ubuntu server, it does not work, through analysis I found that only the connection status will change, on the computer "ready", and on Ubuntu "signalling". There were no changes in the code, all dependencies are saved and have the same versions, discord js version 14.14.1. Can you help me with this problem?
No description

How really @discord.js/voice receives audio?

I looked up the source code, but I really have no idea how he's handling that. I'm thankful for any kind of reply. I want to implement audio receiving in Koe.

voiceAdapterCreator not working

can someone tell me why this is happening ```error adapterCreator: channel.guild.voiceAdapterCreator ^...

NO CONNECTION TO VOICE CHANNEL

```js client.on('messageCreate', async (message) => { if (message.author.bot) return;
if (message.content.toLowerCase() === '!join') {...

How define button const row = new ActionRowBuilder()

Hello, I'm new to DJs and I can't find how to define
const row = new ActionRowBuilder()
const row = new ActionRowBuilder()
...

Voice player sometimes doesn't start playing music

Hi, like the title says, the voice player randomly doesn't start playing music The code responsible for it is the boilerplate from https://discordjs.guide/voice/audio-player.html#playing-audio modified only by a 20sec timeout which just disconnects the bot: ```js...

Bot joins but does nothing

code: ```js const player = createAudioPlayer({ behaviors: { noSubscriber: NoSubscriberBehavior.Pause,...

i don't know, never happened before

Error: Cannot find module 'D:\test\vv\node_modules@discordjs\voice\dist\index.js'

Can't install on Node JS 20

When installing I get this error (Check Attached File) It also seams that there are no prebuilt binaries for Node JS 20 Node JS Version: v20.9.0...

Voice keeps crashing

I saw the faq post and i already have and tried 0.16.1 of discord js voice but it still keeps disconnecting and crashing with a error, its completly random at times it can play entirely or only work for a few secs before it crashes and yes i checked the file and it indead says its on version 0.16.1 and i am using discordjs 14.13.0 Here is the error code: `AudioPlayerError: aborted...