discord.js - Imagine a 👻

DIA

discord.js - Imagine a 👻

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

Join

djs-questions

djs-voice

Stop streaming audo after a short time

Hello I have a bot who stream audio in a channel but it work but in a coupe minute it will stop playing for no reason. There no visible erreur on the terminal... ```js this.on = true ;...

Bot not outputting sound after joining the channel

```js const play = async (song, connection, message) => { if (!song) { connection.leave(); return;...

Why this message spamming in the log

```js if (isjoinedchannel || ischangedchannel) { if(channelid == veri.bilgilendirmekanali){ const player = createAudioPlayer(); player.on(AudioPlayerStatus.Playing, () => {...

How do I get my bot to join a discord vc

Hello guys I'm simply just wanting to put my discord bot into a guild channel vc and thats it I aint tryna do anything else too crazy I'm just wanting it to be in there so I can keep tabs on it easier and also come back to it later and add some more vc related features.

Spotify

How can I play Spotify songs? Every npm package uses YouTube...

AudioResource not playing on Linux

I have a strange issue that I would assume is a dependency mismatch, however everything is in check. I play a URL audio source on my bot that will work on Windows but not on Linux; no errors occur, the audio resource just never plays. ```js let resource = createAudioResource(song.track.preview_url) //Something like p.scdn.co/mp3-preview/8129d5338c56d78f5712fc95d246198da5261854?cid=4c5368cfdc084da795955dd07534fa1e audioplayer.play(resource) console.log(song.track.preview_url)...

I have an error

Hello, i'm programming a bot who play sounds in a voice channel, but when I execute my command !play with the URL he says "voiceChannel.join is not a function, how can I fix it ? https://pastebin.com/T6TpbNsR here the code Thanks !...

Issue with ffmpeg/avconv

I am getting an error on line 6 because the @discordjs/voice module cannto be found despite being required and installed. ``` module.exports = { name: "play",...

Issue with Running Multiple Music Bots in Discord.js 13

I'm facing an issue with running multiple music bots in Discord.js 13. When I try to play music with one bot in a specific voice channel and then switch to another bot in a different voice channel, the first bot ends up joining the second bot's voice channel. It's causing inconvenience in managing the bots. Any help would be appreciated.

what library would you recommend for music from soundcloud

what library would you recommend for music from soundcloud

Did not enter state ready within 5000ms

```js const { Client, Events, GatewayIntentBits } = require('discord.js'); const { joinVoiceChannel, EndBehaviorType, createAudioPlayer, createAudioResource, entersState, VoiceConnectionStatus } = require('@discordjs/voice'); const { getAudioBuffer } = require('simple-tts-mp3'); const fs = require('fs');...

Is it possible to fix so that the bot can include music in YouTube with limited access?

It is very necessary to fix the fact that the bot cannot include the song in YouTube with limited access

Constant in and out of VC

Issue in video ```js client.isMp3.set(interaction.guildId, true); ...

How do I check who in the VC is talking?

How do I check who in the VC is talking. I need this for my own private bot (for reasons I won't get into). I am running d.js v14.11.0, d.js (v) v0.16.0 and node v18.10.0...

receiving audio from a user and playing it with ffplay

This is my code: ```js let connection = joinVoiceChannel({ adapterCreator: message.guild.voiceAdapterCreator, channelId: message.member.voice.channel.id,...

Have speaking's data

```js connection.receiver.speaking.on('start', async (userId) => { const receiverOptions = { mode: 'mp3', end: {...

Ogg files with no sound

Hi, I followed the github recorder example and managed to record some ogg files using my bot. But the files have no sound and seem to be corrupted. Here is my code for this part. ``` async execute(interaction) { await interaction.deferReply();...

voice message

Is there support for detecting and working with voice messages sent from mobile phones?

how to set and track audio player states?

hi there, im learning data structures and algorithms and i thought it would be a nice exercise using them in a discord bot that takes a local folder and creates a track instance and plays it according to an initialized DSA... the thing is, i need to keep track of the player status, but it seems that if (player.state === AudioPlayerStatus.__) have no overlap and it complains, ive seen some player.on(___, async () =>) implementations but looks confusing and verbose, is there any way to properly track and set player states to ensure the behaviour of a queue, stack or whatever? ```ts try { TrackQueue.enqueue(track);...