From 7f8d81472897a79fb7f132f68aeca5cd9c992930 Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:56:30 +0530 Subject: [PATCH] Update README.md --- docs/README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index 665221c..baceb8e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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, { quality : 1 }) // Next to 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, { cookie: COOKIE }) //This will create a stream Class and also give cookies if retrying. let resource = createAudioResource(source.stream, {