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

No music playback on arch linux.

Hey I'm on a arch linux pc, and when I try to do playback of an url the bot just joins the voice channel, goes into Playing Status, and after like 100ms it goes back to idle. The thing is the exact same code works perfectly fine on my debian server. I tried searching in the web and also asked GPT, but after 3 hours of no result I'm asking here....

Trying to make my bot play .mp3 for directory

Hi ! My bot is successfuly doing everything exept playing any sound : If anyone have an idea .. 🙂...

Error with createAudioResource()

hey, i would like some help for my discord bot, i have been trying to code music command to play music in voice channels, but i am encountering an issue, and its been 11 hours since i have been trying to fix it

Query

How to update volume of a running audio track also to seek it? I checked out the docs, didn't help me....

Audio Issues

```js if(!args.join(' ')) return message.reply("Please type song name.");
let api = require(process.cwd()+'/structures/api')...

Audio not playing despite properly retrieving URL to audio. No errors.

I'm trying to play a song through a URL (not YouTube) and despite the URL ending with .ogg (i even tried with .mp3), audio isn't emitted. There is no errors or anything alike, it just doesn't play. What do I do please? I have installed FFmpeg, @discordjs/voice and @discordjs/opus. (Code will be in the comments because it's too long)...

Not emitting audio received from websocket (webm opus)

I'm trying to make a voice bot PoC that takes browser audio stream (webm opus) and sends it over websocket to be spoken into a channel via the bot. I have the stream working with the website and the server, but the bot is not emitting the audio in the channel. I see the following state transition logs ``` read 16384 [08:43:02.268] DEBUG (17160): got interaction: join-voice-channel [08:43:02.269] DEBUG (17160): got join-voice-channel for channel: 1323318616145264651...

Add FFmpeg Args when creating an audio resource

Hey, I would like to know if it's possible to parse ffmpeg args to the ffmpeg conversion when creating an audio resource. Like : -af aresample=48000,asetrate=48000*1.25...

My bot doesn't play music sound

I tried several ways and still my bot is not playing the music sound on discord, I will send how my pathetic code is: ```ts export async function playYoutube(message: DiscordMessage) { if (message.author.bot) return;...

IP discovery - socket closed

Yo guys i have this error on my cmd without this my bots work but sometime when i try to play a music the bot leave the channel then reconnect without this bots works perfectly ``` [Error_Handling] :: Unhandled Rejection...

IP discovery - socket closed

``` [Error_Handling] :: Unhandled Rejection Error: Cannot perform IP discovery - socket closed at Socket.<anonymous> (C:\Users\Administrator\Desktop\Jaz-ceo-Music\Desktop-edit\Jaz Music\node_modules@discordjs\voice\dist\index.js:373:46)...

Commands fail to load / refresh if I require client

I'm messing around with discord.js and trying to build a music bot that plays songs off deezer. Though, I've run into an issue while trying to implement a queue system in my eplay function. If I leave the line: const client = require('../../src/index.js');...
No description

Opus is missing node-gyp how to fix

Opus is missing node-gyp how to fix

Receiving Channel Audio

Hey Guys, I would love to receive channel audio. But i dont find anything working for me. Regards...

Bot connect but doesnt play anything

These are my dependences: Core Dependencies - @discordjs/voice: 0.18.0 - prism-media: 1.3.5...

Bot does not play any music, with no error message at all

it just shows application did not respond on discord, but no error message in terminal `` export async function execute(interaction) { const query = interaction.options.getString("query"); const songPath = audio/${query}`; ...

Audio from websites other than a file

I'm new to the discord.js voice section, and I was wondering how to make the bot play music from other websites for example Youtube or Youtube Music, I got it playing music files that are saved on my pc, but currently I'm trying to make it play music from websites, for example I do !play url and it plays the url which is the music video link.

Detect Move

How to detect if a member moved from a voice to another i tried using:
if(oldState.channelId !== null && newState.channelId !== null) {}
if(oldState.channelId !== null && newState.channelId !== null) {}
but if someone selfmute or selfdeaf them selfs it will count as a move...

not playing

```js const voiceChannel = interaction.member?.voice.channel; const connection = joinVoiceChannel({ channelId: voiceChannel.id,...