Version 0.3.0 - Ajout des premières fonctionnalités du Player
This commit is contained in:
@@ -9,11 +9,11 @@ async function play(instance, song) {
|
||||
instance.player = createAudioPlayer()
|
||||
instance.generatePlayerEvents()
|
||||
const player = instance.player
|
||||
song.resource = await createAudioResource(song.url, {
|
||||
var resource = await createAudioResource(song.url, {
|
||||
inputType: StreamType.Arbitrary
|
||||
}) // Remplace par ton fichier audio
|
||||
|
||||
player.play(song.resource);
|
||||
player.play(resource);
|
||||
instance.connection.subscribe(player);
|
||||
clog.log(`GUILD : ${instance.guildId} - Lecture de la musique (Media): ${song.title} - id : ${song.id}`)
|
||||
|
||||
|
Reference in New Issue
Block a user