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

Audio not playing

ok so i am trying to transmit a audio file into the voice channel but the bot only is able to join the channel and is not transmitting anything heres the pastebin of code: https://pastebin.com/Rdg2Qut5...

Audio non playing on Linux

i've an issue deploying a bot on a linux machine. i've tried with docker and without but same problem on my windows machine. where i've develped the bot, the audio plays fine Discord.js version discord.js@14.12.1 Node Version v20.5.0 ```js...

Getting voice adapter with @discordjs/core

I'm getting an issue with @discordjs/core and @discordjs/voice where it needs an adapter to join a voice channel. So I find out that it relates to the guild but using client.api.guilds.get(guildid) doesn't contain the adapter. How would I get the adapter using @discordjs/core or is it impossible?

Discord-player

hi everyone, I need some help with discord-player.js I open the project again after some weeks and now nothing works but I used it for months I get this: ```Preparing AudioResource... Initializing audio player......

Is it possible to fetch a subscribed AudioPlayer from a VoiceConnection?

Hello there. So I'm making a song bot that plays local files. The current play command simply joins a voice channel (or moves to the current channel) and plays the song that was requested (from a selection of MP3 files on my local system). I am planning on making a queue system so you can queue whatever song you want. My problem comes with fetching the AudioPlayer. The discord.js/voice guide advised against keeping track of connections as you can accidentally create memory leaks. That said, I...

Trying to make an automatic join to VC but wont work

Code ```js client.on("ready",(c)=>{ const channel = c.channels.cache.get('1136337935201996850') const connection = joinVoiceChannel({ channelId: channel.id,...

I want to build a music bot. Bot finds the song but does not play the song

It finds the song on youtube by the name of the song, but the song does not start playing.

Lagging on voice channels

I am not sure if its the stream which is from a online source(no copyright) or discord being sus but the stream is lagging/stuttering /pausing for a sec. Any idea what it could be, like a common thing that happens or smth?

Problem with play external URL

```js TypeError [ERR_INVALID_ARG_TYPE]: The "body" argument must be of type function or an instance of Blob, ReadableStream, WritableStream, Stream, Iterable, AsyncIterable, or Promise or { readable, writable } pair. Received undefined at new NodeError (node:internal/errors:393:5) at duplexify (node:internal/streams/duplexify:199:9) at Duplex.from (node:internal/streams/duplex:146:10)...

The problem with connecting two bots.

I'm developing a functionality to relay a message from one source to multiple Discord channels simultaneously. I need to use commands from one bot to redirect the connection for another bot. Currently, it's not working as expected: When bot A is called --> Bot A joins the channel. When bot B is subsequently called --> Bot A joins the channel again (and vice versa)....

AudioPlayer auto pauses on Ubuntu VPS but not on Windows?

So I'm creating a bot that streams audio from a mp3 stream (Icecast server) to a Discord VC. It works completely fine on my local machine that runs Windows but on my Ubuntu 20.04 VPS, it suddenly auto pauses right after it starts playing. Even with local mp3 files, it still automatically pauses itself which never happens on my local machine. Any help would be appreciated....
No description

Error

Whenever I use my ping slash commands, I recieve a 'Interaction has already been acknowledged.' error. I still works in the chat room though. How can I get rid of it?

How to return player in external function

```js function playURL(interaction){ let url = interaction.options.getString("url"); const player = interaction.legacyPlayer const connection = joinVoiceChannel({...

Audio Won't Play

Converted it over to V14 and after that it just won't play but using a message output it says its playing but its not
js
js
...

Message event listener

I created a messageCreate.js file, but my bot cannot perceive the message. I checked whether the file is loaded with console.log()

How would I merge opus streams

I would like to merge two opus streams or move into one to play in a vc.