Update README.md

This commit is contained in:
Killer069 2021-09-24 15:56:30 +05:30 committed by GitHub
parent 842d704bf2
commit 7f8d814728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,13 @@ let data = await search('Rick Roll', { limit: 1, source { spotify : "tracks" } }
_This is basic to create a stream from a youtube or soundcloud url._
```js
let source = await stream("url") // This will create a stream Class.
let source = await stream("url") // This will create a stream Class. Highest Quality
let source = await stream("url", { quality : 0 }) // Lowest quality
let source = await stream("url", { quality : 1 }) // Next to Lowest quality.
let source = await stream("url", { cookie: COOKIE }) //This will create a stream Class and also give cookies.
let resource = createAudioResource(source.stream, {
inputType : source.type
@ -95,10 +101,13 @@ _This is basic to create a stream from a info [ from [video_info](https://github
**Note :** Here, cookies are required only for retrying purposes.
```js
let source = await stream_from_info(info) // This will create a stream Class from video_info or SoundCoudTrack Class.
let source = await stream_from_info(info) // This will create a stream Class from video_info or SoundCoudTrack Class. Highest Quality
let source = await stream_from_info(info, { quality : 0 }) // Lowest quality
let source = await stream_from_info(info, { cookie }) //This will create a stream Class and also give cookies if retrying.
let source = await stream_from_info(info, { quality : 1 }) // Next to Lowest quality.
let source = await stream_from_info(info, { cookie: COOKIE }) //This will create a stream Class and also give cookies if retrying.
let resource = createAudioResource(source.stream, {