Docs and examples updated

This commit is contained in:
killer069
2021-09-21 13:00:38 +05:30
parent c68a57aaf4
commit 3528f89607
14 changed files with 436 additions and 192 deletions

View File

@@ -1,3 +0,0 @@
const { Authorization } = require('play-dl');
Authorization()

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.stream, {
let resource = createAudioResource(stream, {
inputType : stream.type
})
let player = createAudioPlayer({