Some docs changes

This commit is contained in:
killer069
2021-12-07 12:15:56 +05:30
parent 66f2eb9c8f
commit 9a2289353a
3 changed files with 15 additions and 3 deletions

View File

@@ -30,6 +30,19 @@ interface tokenOptions {
* iv> Useragents :- array of string.
*
* locally in memory.
*
* Example :
* ```ts
* play.setToken({
* youtube : {
* cookie : "Your Cookies"
* }
* }) // YouTube Cookies
*
* play.setToken({
* useragent: ['Your User-agent']
* }) // Use this to avoid 429 errors.
* ```
* @param options {@link tokenOptions}
*/
export function setToken(options: tokenOptions) {