diff --git a/README.md b/README.md index 157e2e4..a0eeee6 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ $ npm install --save @discordjs/opus - Lyrics 📃 - Multiple sources support ✌ - Play in multiple servers at the same time 🚗 +- Does not inject anything to discord.js or your discord.js client ## [Documentation](https://discord-player.js.org) @@ -193,6 +194,9 @@ const player = new Player(client, { }); ``` +> You may also create a simple proxy server and forward requests through it. +> See **[https://github.com/http-party/node-http-proxy](https://github.com/http-party/node-http-proxy)** for more info. + ### Custom stream Engine Discord Player by default uses **[node-ytdl-core](https://github.com/fent/node-ytdl-core)** for youtube and some other extractors for other sources. diff --git a/docs/youtube/proxy.md b/docs/youtube/proxy.md index 35fe5a8..7254972 100644 --- a/docs/youtube/proxy.md +++ b/docs/youtube/proxy.md @@ -13,4 +13,7 @@ const player = new Player(client, { requestOptions: { agent } } }); -``` \ No newline at end of file +``` + +> You may also create a simple proxy server and forward requests through it. +> See **[https://github.com/http-party/node-http-proxy](https://github.com/http-party/node-http-proxy)** for more info. \ No newline at end of file diff --git a/src/Structures/PlayerError.ts b/src/Structures/PlayerError.ts index bce0fbc..da36da6 100644 --- a/src/Structures/PlayerError.ts +++ b/src/Structures/PlayerError.ts @@ -39,7 +39,12 @@ export class PlayerError extends Error { } toJSON() { - return { stack: this.stack, code: this.statusCode, created: this.createdTimestamp }; + return { + stack: this.stack, + code: this.statusCode, + message: this.message, + created: this.createdTimestamp + }; } toString() {