Using Proxy

Using Proxy to avoid 429

const { Player } = require("discord-player");
const HttpsProxyAgent = require("https-proxy-agent");
// Remove "user:pass@" if you don't need to authenticate to your proxy.
const proxy = "http://user:pass@";
const agent = HttpsProxyAgent(proxy);
const player = new Player(client, {
    ytdlOptions: {
        requestOptions: { agent }

You may also create a simple proxy server and forward requests through it. See (opens in a new tab) for more info.