Update README.md

This commit is contained in:
Killer069 2021-09-07 17:10:20 +05:30 committed by GitHub
parent 66ce8a78f3
commit cdefb2b108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,9 @@ let id = extractID(url)
```js
let info = await video_info("url")
let source = await stream_from_info(info) // This will create a stream Class which contains type and stream to be played.
let source = await stream_from_info(info, cookie) // This will create a stream Class which contains type and stream to be played and also give cookies if retrying.
/* OR
let source = await stream_from_info(info, cookie) This will create a stream Class which contains type and stream to be played and also give cookies if retrying.
*/
let resource = createAudioResource(source.stream, {
inputType : source.type
}) // This creates resource for playing