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

Checking the is bot already joined the voice channel

Hello is has any way to achieve this without using GuildVoiceStates intent? And also i want to know does the JoinVoiceChannel function creates a new connection even if bot has already joined to specific voice channel?...

My bot does not run the audio

hey my bot works totally fine in my device but when the bot in a server the audio does not play everything is latest version...

Crashing on connection.destroy();

```js async function handleLeaveCommand(interaction) { const connection = getVoiceConnection(interaction.guild.id); if (!connection) { const cannotJoinEmbed = new EmbedBuilder()...

Listening to Player Events + Removing References + player.stop() & Memory Leaks

Should I be concerned about memory leaks if I open a new listener to listen to the player 'playing', 'idle' and 'error' events every time my user runs a command? Or should I not worry about it if I just don't do anything with that player ever again after the user runs the command? Furthermore, should I be closing players somehow? Or is that just automatic when the player goes to idle after a given period of time? 🤔...

Bot is not playing

Code: ```ts const player = createAudioPlayer({ behaviors: { noSubscriber: NoSubscriberBehavior.Stop, },...

Mp3 audio not playing

Hello i followed various guides and threads in this server to create a command !play that enables the bot to stream an mp3 file located in his folder. The bot joins the channel but the audio don't start, no errors in the terminal. [email protected] Node v16.20.2 @discordjs/[email protected]...

how do i find my AUTHORIZED_USER_ID

how do i find my AUTHORIZED_USER_ID

Delete audio resource

I have a simple system where an audio file is created, and then immediately turned into an audio resource. But it seems like creating an audioResource locks the file. How can I close the file handle to change the file? I obviously don't want to accumulate old unused files.

Audio not playing

Hey - I followed the guide for playing audio but nothing is playing for some reason

How to get voice data from multiple servers simultaneously?

I would like to create one bot that can receive voice data from multiple servers at the same time. Is this possible with discordjs?

Bot didn't speak in voice on an host

Hi, I make a bot who play radio with URL of free API. My command works when I test it on my own computer but when I put it on a host, the bot do not speak. Here my code : ...
No description

createAudioResource has stopped working for me, only getting Status code 403

Hey! I've had my bot running for a couple of years now without many issues until now. Using createAudioResource yields the 403 error. I've tried with both ytdl-core and ytdl-core-discord. These are my package dependencies if that matters: "dependencies": { "@discordjs/opus": "^0.9.0",...

different player in different guilds

Is it possible to create players in diffrent guilds that it also plays diffrent things? Currently I'm creating my player like this but i can't find out how to create a custum one for a server ```js...

Bot not connecting to voice channel

Hey guys, so I could need a little bit of help. I wrote a Bot yesterday that should be able to connect to a voice channel. Took me a while, but I figured it out and it worked like a charm. So, when I checked Discord this morning, I saw that my bot went offline, nothing to serious. But after it started, it just kept on the "Signalling" state of the voice connection. I checked, that the Intent is set, but I can't see any other reason for this issue. Does someone know, what I can do?...

No sound ( no green circle)

Hello, i followed the official discord js v14 voice guide and my bot is not playing any sound. No green circle too. Here's the code: ```js ...

Bot not playing audio

When running the command, it does join the VC successfully and it pops up the green ring around it as it is talking/playing but nothing is coming out at all. Not sure if this matters but - d.js version - [email protected]...

Voice issue reciver !!

the bot didn't send me mp3 of what i said in the first 10s of talking !