describe extractors
This commit is contained in:
parent
63e0e7bece
commit
4d37f51299
1 changed files with 5 additions and 8 deletions
13
README.md
13
README.md
|
@ -113,17 +113,14 @@ const player = new Player(client, {
|
||||||
```
|
```
|
||||||
|
|
||||||
# Sources supported
|
# Sources supported
|
||||||
> By default, **discord-player** supports `youtube`, `spotify`, `soundcloud`, `vimeo`, `reverbnation`, `facebook` and `attachment links` only.
|
> By default, **discord-player** supports `youtube`, `spotify` and `soundcloud` streams only.
|
||||||
|
|
||||||
**Discord Player** provides **extractor API** that enables you to use your custom stream extractor with it. For example, you can use **youtube-dl** with **discord-player** like this:
|
**Discord Player** provides **Extractor API** that enables you to use your custom stream extractor with it.
|
||||||
|
|
||||||
```js
|
# Using @discord-player/extractor [optional]
|
||||||
const { Downloader } = require("@discord-player/downloader"); // YouTubeDL instance
|
> Adds support for `vimeo`, `reverbnation`, `facebook` and `attachment links` and `lyrics`
|
||||||
|
|
||||||
player.use("EXAMPLE", Downloader); // now discord-player supports 700+ sites :poggies:
|
**Discord Player** automatically detects and uses `@discord-player/extractor`. You just need to install it via `npm i --save @discord-player/extractor`.
|
||||||
```
|
|
||||||
|
|
||||||
or you can build your own :D
|
|
||||||
|
|
||||||
## Examples of bots made with Discord Player
|
## Examples of bots made with Discord Player
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue