discord-player 6.1.1 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/index.d.ts +2228 -2034
- package/dist/index.js +310 -124
- package/dist/index.mjs +297 -115
- package/package.json +2 -2
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -30,8 +30,8 @@ Discord Player requires Discord.js 14.0 or higher. PLease make sure you have a c
|
|
|
30
30
|
#### Main Library
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
$
|
|
34
|
-
$
|
|
33
|
+
$ yarn add discord-player # main library
|
|
34
|
+
$ yarn add @discord-player/extractor # extractors provider
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
> Discord Player recognizes `@discord-player/extractor` and loads it automatically by default.
|
|
@@ -41,8 +41,8 @@ $ npm install @discord-player/extractor # extractors provider
|
|
|
41
41
|
Discord Player is a high level framework for Discord VoIP. Discord only accepts opus packets, thus you need to install opus library. You can install any of these:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
$
|
|
45
|
-
$
|
|
44
|
+
$ yarn add @discordjs/opus
|
|
45
|
+
$ yarn add opusscript
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
#### FFmpeg or Avconv
|
|
@@ -50,7 +50,7 @@ $ npm install opusscript
|
|
|
50
50
|
FFmpeg or Avconv is required for media transcoding. You can get it from [https://ffmpeg.org](https://www.ffmpeg.org/download.html) or by installing it from npm:
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
$
|
|
53
|
+
$ yarn add ffmpeg-static
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
You can get avconv from [https://libav.org/download](https://libav.org/download).
|
|
@@ -60,9 +60,9 @@ You can get avconv from [https://libav.org/download](https://libav.org/download)
|
|
|
60
60
|
You also need to install streaming library if you want to add support for youtube playback. You can install one of these libraries:
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
$
|
|
64
|
-
$
|
|
65
|
-
$
|
|
63
|
+
$ yarn add ytdl-core
|
|
64
|
+
$ yarn add play-dl
|
|
65
|
+
$ yarn add @distube/ytdl-core
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
Done with all these? Let's write a simple music bot then.
|