Fetch URL from audio resource
Is there a way to fetch the URL from an audio resource? I'm playing a radio station with my bot.
When the bot play AudioResource as first time, it will finish immediately
Just same thing. What's going on?
"Cannot perform IP discovery - socket closed"
getting this error after leaving the bot on for some time
```
file:///D:/musicbot/node_modules/@discordjs/voice/dist/index.mjs:286
this.socket.once("close", () => reject(new Error("Cannot perform IP discovery - socket closed")));
^...
Connecting a specific client to a voice channel
Hello, I'm trying to make a distributed music bot service for a single guild. Long story (https://stackoverflow.com/questions/75860115/is-there-a-way-to-connect-a-specific-discord-js-client-to-a-voice-channel) short, I've logged in several other clients I'd like to have connect to a voice channel when a user uses /play. The main bot that receives the command runs
```js
const channel = interaction.member.voice.channel;
const { joinVoiceChannel } = require('@discordjs/voice');
const connection = joinVoiceChannel({...
Core Dependency showing different than a version number
Hi,
Trying to port my bot over to Ubuntu, it works with zero issue on Windows 11, it doesn't seem to want to get the radio station anymore on Ubuntu for whatever reason, but again works fine on Windows, I did a fresh npm install, there is nothing that should be causing issues on Ubuntu, nothing fails during npm install... The only thing I can see is my @discordjs/voice version is not showing a version number, just [VI]{{inject}[/VI] I don't know if this is normal?
Any suggestions?...
Question about connection.on
When a voice connection is destroyed, does the connection.on method get destroyed as well? Because I don't want to overload the bot, and I want to create a new connection.on method when creating a new connection.
Play command
I was making a play command
``` await interaction.deferReply();
const search = await ytse(given_song);...
Cannot join voice channel
I am rewritting my bot from DJS v12 to v14. I started by writing a simple music bot that would play a youtube link using ytdl-core. But when it tries to join a voice channel it just doesn't and then it is unable to subscribe.
I believe it may have something to do with the voice adapter but I am not sure how that works.
Gateway intents are enabled, and I did manage to make it join using the discord-player package but that package is way beyond my understanding....
If I wait a while and then resume, nothing plays.
If I wait a while and then resume, nothing plays.
About 30s ~ 1m...
502 crashes the bot
i'm playing audios that's uploaded as mp3 files in the host, and suddenly the bot crash with this err
Is there an way to install seek function on my bot?
I tried AudioResource's playStream seek, but it doesn't work.
What can I do? I think there's way because discord-player can do that task.
Could someone help me? I saw discord-player's code, but I can't realize it....
SpeakingMap stops triggering 'start' events after some time
My bot is connected to the voice channel through a VoiceConnection and has a VoiceReceiver. I added an event listener for the 'start' event of the SpeakingMap. It seems to work fine for around 1 minute then stops triggering. Any help would be appreciated.
Radio
My bot is playing music from an online radio station, but the music stops playing after like 30 seconds. I thought it was something with YouTube only, but it also affects my radio bot. Is there any way to fix it without pauses in between the music?
How to seek an aduio
const resource = createAudioResource(path, { seek: 60000, volume: 1 });
player.play(resource)
const resource = createAudioResource(path, { seek: 60000, volume: 1 });
player.play(resource)
const resource = createAudioResource(path);
player.play(resource, { seek: 60000, volume: 1 });
const resource = createAudioResource(path);
player.play(resource, { seek: 60000, volume: 1 });
AudioPlayer#stop method
so like it mentions that the player will be destroyed so what am confused is like how? I checked the source and all I see is the resource being destroyed, not the player and if it is actually destroying the player, does it mean I have to make a new
AudioPlayer
?Multiple Voice Connections
Is it possible to have multiple voice connection subscription for a guild? if so, how would I go about retrieving a particular/specific connection that I'd like to terminate?
connection destroy, disconnect
Is it possible to destroy the connection with disconnecting the bot,
I’ve a command that play an audio < 35 sec
What I’m doing right now that i just use the same connection, but then i will see the warn...
Connecting to voice connecting
Hi, I would like to know if it's possible to connect to the voice connection (to only send audio) only with the token, endpoint and sessionId, I don't have access to the bot token (this is how the project I'm doing works) and the client sends me those informations (as well with client id and etc)
I couldn't find anywhere to do that, is that possible, if not, is there any other way to do it?...
Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running
Error [ERR_SOCKET_DGRAM_NOT_RUNNING]: Not running
after a certain time, the sound in the vocal cut and i catch this error, idk where did this come from...