Merge branch 'develop' of https://github.com/Androz2091/discord-player into develop
This commit is contained in:
commit
169d4073b0
3 changed files with 14 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -13,4 +13,7 @@ const player = new Player(client, {
|
|||
requestOptions: { agent }
|
||||
}
|
||||
});
|
||||
```
|
||||
```
|
||||
|
||||
> 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.
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue