Version 0.4.0-alpha1
This commit is contained in:
@@ -13,6 +13,8 @@ async function play(instance, song) {
|
||||
inputType: StreamType.Arbitrary
|
||||
}) // Remplace par ton fichier audio
|
||||
|
||||
|
||||
instance.setCurrentResource(resource)
|
||||
player.play(resource);
|
||||
instance.connection.subscribe(player);
|
||||
clog.log(`GUILD : ${instance.guildId} - Lecture de la musique (Media): ${song.title} - id : ${song.id}`)
|
||||
|
@@ -15,7 +15,7 @@ async function play(instance, song) {
|
||||
|
||||
const stream = await soundcloud.util.streamTrack(song.url)
|
||||
var resource = await createAudioResource(stream)
|
||||
|
||||
instance.setCurrentResource(resource)
|
||||
player.play(resource);
|
||||
instance.connection.subscribe(player);
|
||||
clog.log(`GUILD : ${instance.guildId} - Lecture de la musique (Soundcloud): ${song.title} - id : ${song.id}`)
|
||||
|
@@ -22,7 +22,7 @@ async function play(instance, song) {
|
||||
// Add compressor to the audio resource
|
||||
var resource = createAudioResource(stream);
|
||||
|
||||
|
||||
instance.setCurrentResource(resource)
|
||||
|
||||
player.play(resource);
|
||||
instance.connection.subscribe(player);
|
||||
|
Reference in New Issue
Block a user