! Alk
! Alk
DIAdiscord.js - Imagine an app
Created by ! Alk on 9/22/2023 in #djs-questions
How to use @discordjs/proxy
I just want simple explanation, with an example if possible.
2 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 9/7/2023 in #djs-voice
How to get the audioResource
I want to get the audioReasource to delete it, and i'm doing like this when it finish
const resource = createAudioResource(playObj.path);
player.play(resource);

player.on(AudioPlayerStatus.Idle, () => {
try {
resource.playStream.destroy()
resource.playStream = null;
connection.destroy()
connection.disconnect();
} catch (e) {
console.log(e)
}
});
const resource = createAudioResource(playObj.path);
player.play(resource);

player.on(AudioPlayerStatus.Idle, () => {
try {
resource.playStream.destroy()
resource.playStream = null;
connection.destroy()
connection.disconnect();
} catch (e) {
console.log(e)
}
});
but how can i get it if for example i want to use stop cmd Also, is it possible to get it from here player.on(AudioPlayerStatus.Idle, () => {})
18 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 3/24/2023 in #djs-voice
502 crashes the bot
8 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 3/20/2023 in #djs-voice
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 });
I tired both, they do not seek djs v 13.14 @discordjs/voice@0.15.0
8 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 3/14/2023 in #djs-voice
connection destroy, disconnect
20 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 3/11/2023 in #djs-voice
AudioPlayerStatus.Idle
76 replies