discord-player-play-dl/docs/youtube/cookies.md
Snowflake107 eef4f50144 docs
2021-04-21 16:24:51 +05:45

466 B

Using Cookies to avoid 429

const { Player } = require("discord-player");

const player = new Player(client, {
    ytdlDownloadOptions: {
        requestOptions: {
            headers: {
                cookie: "YOUR_YOUTUBE_COOKIE"
            }
        }
    }
});

Keep in mind that using cookies after getting 429 does not fix the problem. You should use cookies before getting 429 which helps to reduce Error: Status Code 429