From cdefb2b108e9ad7959ec1a80a13876e1a9bc0491 Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Tue, 7 Sep 2021 17:10:20 +0530 Subject: [PATCH] Update README.md --- docs/YouTube/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/YouTube/README.md b/docs/YouTube/README.md index 4b8b569..e080b74 100644 --- a/docs/YouTube/README.md +++ b/docs/YouTube/README.md @@ -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