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

Bot is not joining voice channel after executing function in voiceStateUpdate event

After I made a function that is responsible for automatically playing the radio when a user joins the channel, the bot does not join the channel at all despite the variables being correctly defined. Debugging showed nothing (I tried logging connection, player, stream, resource sequentially), however everything seems to be used correctly. I am using almost the same code in the radio.ts command which is responsible for starting the radio manually, where everything works correctly. The only thing that changes is adapterCreator which I currently think is the problem in my function....

joinVoiceChannel is not a function. But its in dependencies

This is there error I get ``` awash@awash-hp:~/Documents/code/JS/musicBot$ bun run index.js Ready! Logged in as Player#9475...

Trying to play an audio file

Hello, I started a few days ago with discordjs, I have now tried to play an audio that I have locally, a lot of information is from discord 12 or 13 and in 14 I can't find much help, I don't know why the bot joins To the voice channel, the playing audio log pops up but it doesn't play any audio, I gave it all the permissions I would swear to the voice and when I put logs to catch errors I don't get that it is going at all wrong in reading This is my replit repo https://replit.com/@FranyxD/Zetydiscordbot?s=app...

Unable to play from external URLs on linux based systems

The bot cannot play from external URLs on linux based systems such as a vps like before but works perfectly on windows. The error was fixed by the developer of DisTube through a custom ffmpeg handler and he suggested to replace prism-media.

Audio Player and Voice Connection

Hello, Does the player.stop() removes and deletes the created audio player and it's resource And i wanna know does the connection.destory() removes the created audio player and it's resource as well?...

Help

I'm very new to Discord.js, can someone teach me? I'm coming from Aoi.js and now I want to switch to discord.js.

Stop playing audio without voiceStatesUpdate event

Hello Is there have any way to stop playing the audio without voiceStatesUpdate event when the member left the voice ?

On start playing audio event

Hello here is my code: ```js const connection = joinVoiceChannel({ channelId: voiceChannel.id, guildId: voiceChannel.guild.id,...

Opus

```js client.on('messageCreate', async message => { if (message.author.bot || !message.guild) return if (!message.content.startsWith(prefix)) return const args = message.content.slice(prefix.length).trim().split(/ +/g)...

I tried to play ogg but it doesn't play

although I can participate in the VC, the music does not play. There are no errors. ```js client.once('ready', async () => { console.log('Ready!');...

oggをループ再生しようとしたがエラーが出ずに音が聞こえない

although I can participate in the VC, the music does not play. There are no errors. ```js client.once('ready', async () => { console.log('Ready!');...

Voice Ports blocked

My isp blocked the ports for discord voip is there any alternative way i can use the voice api?

Speaking 'start'/'end' events trigger continuously - Caused by while loop?

I have two ts at global level: let startedSpeakingTimestamp; let stoppedSpeakingTimestamp; ...

How to check if a user is in a specific guild

Hey there, I'm trying to make a command, that invites a person to a football club. Because, I don't want anyone to join that isn't in the main server, I wanted to check if the user is in the discord. I've tried countless solutions, but nothing worked. I don't know why, but I hope that someone can help me with this problem....

How Can I make the bot leave a channel without having the connection that was created on his join ?

When the bot joins a channel it creates a connection with the joinVoiceChannel() function but when we reset the bot the voiceConnection is not kept so my question is how can I get the connection of the bot in a channel without having the first connection object ? My goal is to make him leave the channel.

set undefined

this.client.voice.adapters.set(this.id, methods); ^ TypeError: Cannot read properties of undefined (reading 'set') at Object.adapterCreator (/home/container/node_modules/discord.js/src/structures/Guild.js:1415:34) at new VoiceConnection (/home/container/node_modules/@discordjs/voice/dist/index.js:1683:29)...

unknown interaction

hello everyone i have a ticket bot and when the admin want to close the ticket and press the button he gets “Unknown interaction” and other times it works fine how can i find the issue?...
No description

discord voice engine

hello im just asking if someone got an alternative discord voice engine that work on windows
No description

Bot joins the vc but audio doesn't play

yes the path is correct. ``js var { voice } = message.member if(!voice.channelId) return message.reply({content:This command requires you to join a vc in this server. Get help`})...

Audio Source

Hello i got a question How can we play an audio with the Source Thing but Without Put The Whole File Path From the C: For exemple to the music we want to play can we do something bc i need to put it on a server but it wont play bc idk what is the Disk of the server and others things...