Skip to content

Commit 8a7c880

Browse files
authored
fix(voice): remove passes option from example (discordjs#360)
1 parent 3350073 commit 8a7c880

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guide/voice/the-basics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ To end the stream yourself, you can run:
5858
dispatcher.destroy();
5959
```
6060

61-
You can also create the dispatcher with options. The following example will play a stream at 50% volume and with 3 passes (this is the number of times an audio packet is sent. Increasing this value will reduce the chance of packet loss, but will also increase bandwidth used!)
61+
You can also create the dispatcher with options. The following example will play a stream at 50% volume from the start on.
6262

6363
```js
64-
connection.play('audio.mp3', { volume: 0.5, passes: 3 });
64+
connection.play('audio.mp3', { volume: 0.5 });
6565
```
6666

6767
### Which audio sources can I use?
@@ -132,4 +132,4 @@ connection.disconnect();
132132
voiceChannel.leave();
133133
```
134134

135-
</branch>
135+
</branch>

0 commit comments

Comments
 (0)