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

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...

Low audio quality issue

I'm using latest version of discord.js and discordjs/@voice but the quality of audio is much lower as compared to listening to same files on my PC. This is my code: ```js const { createAudioPlayer, createAudioResource, AudioPlayerStatus } = require('@discordjs/voice'); ...

Bot Works Locally, In Production Player States Goes To Idle Straight Away?

Hi, I'm having an issue with my bot in production. It works fine locally (macOS), but in production (Docker node:20 image), the player state changes from playing to idle straight away: ```...

play is not a valid method

discord.js version:12.5.3

Record users with high input sensitivity

I use the next code for recording speaking users ```ts const connection = getVoiceConnection(<guild ID>); const receiver = connection.receiver; ...
No description

Audio recording stream

Hiya, I was wondering on how you now create audio streams? I only know is as connection.receiver.createStream(message.member, { mode: 'pcm', end: 'silence' }); I want to use it so I can record the voice chat. Thanks!...

Bot dont Play audio

Hello my bot dont play but i dont know why ``` const voiceChannel = interaction.member.voice.channel; const connection = joinVoiceChannel({ channelId: voiceChannel.id,...

Voice Connection Issue

So, the bot joins the discord voice channel, then displays this after 15 seconds and then doesn't do anything. Node Version: V10.24.0 DiscordJS Version: 12.5.3 I can post the index.js in here if needed...
No description

wait for bot to play audio

First time working with it, I have a cron job running eery 5 minutes. In the callback, the bot fetches an array and loops over it. Each array has a mp3 and a channel id. Now i want to run each mp3 in its own channel. Scenario:Bot runs the join function, a connection is created. It then listens to ready event and create a player to run audio on the connection. ...

How to check if user join the voice

How to check if user join the voice

How do i close a receiver subscription (opus stream)

setTimeout(() => this.connection.destroy(), after); this.emit('stop-listining-stream'); console.log(this.opusStream); return this; ...

the receiver subscription (opus stream) haves the end method = 0

createListeningStream(usersIds, writeStream) { const receiver = this.connection.receiver; this.opusStream = []; // console.log(usersIds);...

Bot stops playing when rejoining another channel

My bot plays in channel1. He uses connection.disconnect() to leave a voice channel, but the connection still exists. After using connection.rejoin({ channelId: channel2.id }) in order to join another voice channel, the bot doesn't play the sound of its subscribed player anymore. But the player is playing the music. What's the solution?

Voice receiver doesn't pick up soundboard sounds

I have a pretty fancy discord bot that uses a voice receiver to pick up audio from users. const audioStream = getVoiceConnection(guildId).receiver.subscribe(userId, { end: { behavior: EndBehaviorType.AfterInactivity, duration: 100 } }); Is the very very very simplified version of it I suppose....

addition

part of index.js ```client.on('interactionCreate', (interaction) => { if (interaction.commandName === 'add') { const num1 = interaction.options.get('first-number').value;...

Retrieve voice channel reference from voice connection

I'm trying to deal with the client being dragged to a different channel. I'm using code very similar to the example in the docs with dealing with re-joins and that works, but I also store a reference to the original voice channel. I would like to update that reference, but I'm not sure how to retrieve it. I only have the voice connection state and voice connection itself...