A function that can show bot ping connection (Voice Channel)
Is there a way to create a bot command that can show us the bot ping connection when the bot is in a voice channel? I don't ask or mention about Websocket or API latency.
member presence is undefined
I am trying to make a discord bot that moves you to a channel based on what game you currently play. The only problem is that the member.presence always returns undefined when the member is playing or when hes not. But i cant figure out how to let it give me a console output with the game the member is playing.
Opus wont install on Termux environment
Basically im trying to make a live transcript bot using VC but I want to use Termux for the host. I just get a whole load of warnings then
Error: \
make` failed with exit code: 2`DJS-voice Required Packages Not Found
I have installed sodium-native using
yarn add sodium-native
and @discordjs/opus via yarn add @discordjs/opus
but despite doing this, for some reason it is still not recognized by @discordjs/voice. What am I doing wrong?Problem with my radio bot
Hello to everyone!
Recently I changed my vps offer for something in the same performance as my old one but for less money, the server is in ubuntu 22.04 like the old one, all is installed the same, same version of npm and nodejs.
When I start my bot, it turns on but if I do the command /radio-other for example and I choose a proposed radio, the bot puts itself well in the voice room but does not play any music, which is annoying, I authorized the range
50000:65535
in udp output on my vps thinking that it could come from there but it does not change anything, I tried to reboot the server or the firewall by testing but it always does the same thing....dynamic volume levelling
i made a bot that plays music in a VC from mp3 files. unfortunately their volumes are all over the place. has anyone made it so their bot adjusts the volume automatically so they're all the same?
voiceState is undefined
```
client.on('voiceStateUpdate', (oldState, newState) => {
voiceClient.startListener(oldState, newState);
console.log(voiceClient.getUserData(client.guilds.cache.get(guildID).members.cache.get(newState.id)))
})...
Good way to get the progress of the current song?
Is there a good way or do I have to keep track of it myself?
not playing audio
```js
const { joinVoiceChannel, createAudioResource, createAudioPlayer } = require("@discordjs/voice");
const connection = joinVoiceChannel({
channelId: state.channel.id,...
My bot take a lot of seconds to start playing the music
HII
```js
const connection = joinVoiceChannel({
channelId: channel.id,...
No one else can hear my music bot lagging.
Im the only one who can hear my musicbot lagging no one else does, its hosted on the same network im using discord on if that affects anything.
not playing anything
```js
const { Client, SlashCommandBuilder } = require('discord.js')
const { createAudioPlayer, createAudioResource, generateDependencyReport, joinVoiceChannel } = require('@discordjs/voice');
console.log(generateDependencyReport());...
Error FFmpegavconv not found!
This is my first time using this and I'm not sure if I've even done it right,
I'm getting the error
Error: FFmpeg/avconv not found!
from:
```js...when his bot is inside a voice channel, moving others takes about 5 seconds, whilst when it’s not in
there is a very strange bug when my bot is in vocal and that it has to move a member the action but about 5 seconds, whereas when it is not in vocal that but about 30ms
Creating-deleting vc on join-leave error
Im getting this error and it doesnt say where in the code comes from.
Any idea where to look at and how to fix it?
```js
/node_modules/discord.js/src/rest/RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);...
The package returns the wrong State.
When I use connection.on("stateChange"), it reports
signalling
and connecting
before it joins, but it doesnt signal out ready
when it joins the voice channel. It only reports ready
when you make the bot leave the voice channel. I'm using the latest version published on NPM currently.Bot don't plays audio
pls help me
Code:```js
let connection = DiscordVoice.joinVoiceChannel({
channelId: interaction.member.voice.channelId,
guildId: interaction.guild.id,...
join members voice channel
how do i get the currently joined voice channel of sender and make it join and play audio there?
All element play can be inlineVolume ?
my bot can play music with a link (NOT YOUTUBE), with a file or even a stream link from a radio. Do all these elements accept the volume management (inlineVolume) directly with "createAudioResource"?