discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discords apps API.

Join

djs-questions

djs-voice

"Error: FFmpeg/avconv not found!" but i have FFmpeg

Even though i have FFmpeg, it still gives me this error, but what could be the cause? (It was working before, i didn't do anything)
No description

Auto pause

For some reason the bot is auto pausing the audio immediately once it starts, here's my code: ```js const connection = joinVoiceChannel({ channelId: channel.id,...

Bot recognizes speech event twice or more

I'm struggeling with following issue: I created a bot that should recognize different voice commands and play audio according to the command. I'm working with discord-speech-recognition and @discordjs/voice. So far so good, everything works fine when I'm testing it. But when a friend of mine is testing it, the bot often recognizes the msg twice or even more times. He's using the mobile app, so I also tried it with my phone and still I have no problems. I followed the discord-speech-recognition example usage for discord.js v14 `client.on(SpeechEvents.speech, (msg) => { if(!msg.content) return;...

Can a bot find the value of a field in a embed?

I'm trying to make this bot that can find the value of the first field that a webhook sends. Is that possible and how so?

why i am getting this and how to fix ?

```0|sharded-client | (3:08:07 PM) - [WARN] - ----- Unhandled Rejection ----- 0|sharded-client | (3:08:07 PM) - [ERROR] - Error: Cannot perform IP discovery - socket closed 0|sharded-client | at Socket.<anonymous> (file:///home/ubuntu/ST-Manager/node_modules/@discordjs/voice/dist/index.mjs:309:46) 0|sharded-client | at Object.onceWrapper (node:events:632:28) 0|sharded-client | at Socket.emit (node:events:530:35)...

Set Path to custom ffmpeg binary

Hello, we're currently encountering issues with the static-ffmpeg module in our Docker container, occasionally resulting in an EAGAIN Error. To address this, we're considering mounting the ffmpeg binary from outside the container and using this path internally. Is there a method for setting the ffmpeg binary path through an environment variable?...

bot joins voice channel but doesn't play the resource

Hello, I've been trying to create a bot on Discord. I want it so that when you send a rose 🌹 or a thunderbolt ⚡, the bot connects and plays NPC sounds that people make. However, my bot, or rather the audio, isn't working well. When I'm in the voice channel and send messages, it connects, but no sound is heard or played. I've read the docs but I'm unable to make the bot play a sound I share the repo if anyone could take a look at it I'd be more than grateful, I'm working with deno and latest discord js voice package...

Permission Overwrites on Voice Channels

I set permission overwrites for a voice channel and they do apply, yet they dont seem to take effect at all. ```ts import { Listener } from '@sapphire/framework'; import { ApplyOptions } from '@sapphire/decorators'; import { ChannelType, OverwriteType, Snowflake, VoiceState } from 'discord.js';...

help fix error

my bot was working a couple of days ago, now I decided to try to run it to write code, but when I wrote the command / mute in the discord, it started to give this error, although nothing happened to the bot for a couple of days

AudioPlayer amd VoiceConnection life and listeners

If I destroy a voice connection that has an audioplayer subscribed, will the player also be garbage collected / destroyed? What about any event listeners attached to them? Do I need to remove them, or destroying the VoiceConnection removes them as well?...

Is it possible to create a bot that translates a person's speech in a voice channel into another lan

Hi everyone! Can you tell me if it is possible to make a Discord-bot that would record a person's words in a voice channel, translate them into another language and play back the translation? I can also provide my idea how such a bot would work. Thanks!

Discord bot to translate speech from one language to another in real time

Hi everyone! Can you tell me if it is possible to make a Discord bot that would record what a person says in a voice channel, translate it into another language and play back the translation? If you can suggest something about this, write me in private messages, I can also provide my own idea how such a bot would work. Thanks!

geis, how can I rewind audio for example 20 seconds forward or backward in @discordjs/voice

geis, how can I rewind audio for example 20 seconds forward or backward in @discordjs/voice

Missing opus packages

Hi, i'm not sure how to understand these exceptions. As per the docs on npm, only one opus package is required and we have @discordjs/opus. We used to have all 3 and after removing node-opus and opusscript it threw this today. Is it a version diff or something along that line?
No description

Error: FFmpeg/avconv not found!

everytime i run the code it says the error on the title code: ```const { Events } = require('discord.js'); ...

Does audioplayer buffering state ever time out?

Apologies in advance, might be a bit long.. Does an audioplayer ever time-out if it's in buffering state for too long? Also, if not, is there any negative effect if an audioplayer stays too long in buffering state? Memory leak or such? I am working on a discord bot, that takes an opus/ogg stream as input, which comes from another certain older discord music bot that is capable of web streaming (not sure if I am allowed to mention it's name). The stream is a response from an API call, which needs a stream token....

Users in voice channel

Is it possible to listen to the whole voice channel instead of just by users

Stuck at connecting

I have noticed that sometimes the connection state of a voice channel goes through these states: signalling > connecting connecting > connecting connecting > connecting ...

Saving an opus stream from a voice channel to .mp3/.wav/.webm

So with the help of another thread here, I managed to save an opus stream to .ogg. Now, I need to save that same opus stream to an .mp3 file instead, and i’m even more stuck than last time. Can I somehow save the audio to a .mp3 or .wav file instead? Help would be much mich appreciated… ```js...

How to save a user's voice to a local file? (.mp3 or .ogg)

```js let listener = voiceReceiver.subscribe(userId, { end: { behavior: EndBehaviorType.AfterSilence, duration: allowedPauseDurationForInputVoice...