Merge branch 'develop' of https://github.com/Androz2091/discord-player into develop

This commit is contained in:
DevAndromeda 2021-11-28 14:24:11 +05:45
commit 169d4073b0
3 changed files with 14 additions and 2 deletions

View file

@ -37,6 +37,7 @@ $ npm install --save @discordjs/opus
- Lyrics 📃 - Lyrics 📃
- Multiple sources support ✌ - Multiple sources support ✌
- Play in multiple servers at the same time 🚗 - 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) ## [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 ### 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. Discord Player by default uses **[node-ytdl-core](https://github.com/fent/node-ytdl-core)** for youtube and some other extractors for other sources.

View file

@ -14,3 +14,6 @@ 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.

View file

@ -39,7 +39,12 @@ export class PlayerError extends Error {
} }
toJSON() { 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() { toString() {