voice: remove passes

(discord will begin dropping duplicated audio packets from tomorrow, you should not set passes > 1)
This commit is contained in:
Amish Shah
2019-08-22 12:15:20 +01:00
parent cc488a8bd3
commit c715ed9f8b
4 changed files with 11 additions and 19 deletions

View File

@@ -70,13 +70,10 @@ We can also pass in options when we first play the stream:
```js
const dispatcher = connection.play('/home/discord/audio.mp3', {
volume: 0.5,
passes: 3
volume: 0.5
});
```
These are just a subset of the options available (consult documentation for a full list). Most users may be interested in the `passes` option, however. As audio is sent over UDP, there is a chance packets may not arrive. Increasing the number of passes, e.g. to `3` gives you a better chance that your packets reach your recipients, at the cost of triple the bandwidth. We recommend not going over 5 passes.
### What can I play?
Discord.js allows you to play a lot of things: