player-engine
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -101,3 +101,3 @@ "use strict"; | ||
this.stream = this.tempStream; | ||
this.createResource(); | ||
//this.createResource(); | ||
} | ||
@@ -111,15 +111,13 @@ } | ||
createResource(inlineVolume = true) { | ||
if (!this.audioResource) { | ||
this.audioResource = (0, voice_1.createAudioResource)(this.stream, { | ||
metadata: { | ||
title: this.title, | ||
picture: this.picture, | ||
url: this.url, | ||
platform: this.platform, | ||
duraation: this.duration.full, | ||
}, | ||
//inputType: this.streamType ?? StreamType.Raw, | ||
inlineVolume, | ||
}); | ||
} | ||
this.audioResource = (0, voice_1.createAudioResource)(this.stream, { | ||
metadata: { | ||
title: this.title, | ||
picture: this.picture, | ||
url: this.url, | ||
platform: this.platform, | ||
duraation: this.duration.format, | ||
}, | ||
//inputType: this.streamType ?? StreamType.Raw, | ||
inlineVolume, | ||
}); | ||
return this.audioResource; | ||
@@ -126,0 +124,0 @@ } |
{ | ||
"name": "player-engine", | ||
"description": "Play your Musics in Your Discord Music Bot | Discord.js V13 Only", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
42741
978