discord-player-play-dl/docs/youtube/cookies.md

15 lines
278 B
Markdown
Raw Normal View History

2021-04-21 13:30:40 +05:00
# Using Cookies to avoid 429
```js
const { Player } = require("discord-player");
const player = new Player(client, {
ytdlDownloadOptions: {
requestOptions: {
headers: {
cookie: "YOUR_YOUTUBE_COOKIE"
}
}
}
});
```