FeroxNotMonday
FeroxNotMonday
DIAdiscord.js - Imagine an app
Created by FeroxNotMonday on 10/18/2023 in #djs-voice
How loop music queue?
var channel = message.member?.voice?.channel;
const connection = await joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
selfDeaf: false,
selfMute: false
});
var player = createAudioPlayer();
const resource = createAudioResource('./music.mp3');
player.play(resource);
await connection.subscribe(player);
player.on(AudioPlayerStatus.Idle, async (a, b) => {
a.play(resource)
})
var channel = message.member?.voice?.channel;
const connection = await joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
selfDeaf: false,
selfMute: false
});
var player = createAudioPlayer();
const resource = createAudioResource('./music.mp3');
player.play(resource);
await connection.subscribe(player);
player.on(AudioPlayerStatus.Idle, async (a, b) => {
a.play(resource)
})
2 replies
DIAdiscord.js - Imagine an app
Created by FeroxNotMonday on 7/9/2023 in #djs-questions
Who working with Distube? Can you help me?
3 replies