458 B
458 B
Using Cookies to avoid 429
const { Player } = require("discord-player");
const player = new Player(client, {
ytdlOptions: {
requestOptions: {
headers: {
cookie: "YOUR_YOUTUBE_COOKIE"
}
}
}
});
Keep in mind that using
cookies
after getting429
does not fix the problem. You should usecookies
before getting429
which helps to reduceError: Status Code 429