Freud
Freud
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Freud on 7/22/2024 in #djs-voice
Audio not playing
okay thanks!
8 replies
DIAdiscord.js - Imagine an app
Created by Freud on 7/22/2024 in #djs-voice
Audio not playing
For some reason when I log music it thinks duration is 0
8 replies
DIAdiscord.js - Imagine an app
Created by Freud on 7/22/2024 in #djs-voice
Audio not playing
const connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
})

const player = createAudioPlayer({
behaviors: {
noSubscriber: NoSubscriberBehavior.Pause,
},
});

const music = createAudioResource('/music/yes.mp3')

player.play(music)
connection.subscribe(player)

player.on(AudioPlayerStatus.Playing, () => {
// console.log(music);

console.log('The audio player has started playing!');
});
const connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
})

const player = createAudioPlayer({
behaviors: {
noSubscriber: NoSubscriberBehavior.Pause,
},
});

const music = createAudioResource('/music/yes.mp3')

player.play(music)
connection.subscribe(player)

player.on(AudioPlayerStatus.Playing, () => {
// console.log(music);

console.log('The audio player has started playing!');
});
8 replies
DIAdiscord.js - Imagine an app
Created by Freud on 7/22/2024 in #djs-voice
Audio not playing
8 replies