Stream Changed to OLD

This commit is contained in:
killer069
2021-09-21 22:04:45 +05:30
parent cc891d3fac
commit 2564c16b82
8 changed files with 40 additions and 37 deletions

View File

@@ -22,7 +22,7 @@ client.on('messageCreate', async message => {
let searched = await play.search(`${sp_data.name}`, { limit : 1 }) // This will search the found track on youtube.
let stream = await play.stream(searched[0].url) // This will create stream from the above search
let resource = createAudioResource(stream, {
let resource = createAudioResource(stream.stream, {
inputType : stream.type
})
let player = createAudioPlayer({