Skip to content

Commit

Permalink
docs: fix voice broadcast example code (discordjs#3436)
Browse files Browse the repository at this point in the history
client.createVoiceBroadcast() -> client.voice.createBroadcast()
  • Loading branch information
n3oney authored and samsamson33 committed Feb 27, 2020
1 parent 39c9749 commit b07f597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/voice.md
Expand Up @@ -114,7 +114,7 @@ Make sure to consult the documentation for a full list of what you can play - th
A voice broadcast is very useful for "radio" bots, that play the same audio across multiple channels. It means audio is only transcoded once, and is much better on performance.

```js
const broadcast = client.createVoiceBroadcast();
const broadcast = client.voice.createBroadcast();

broadcast.on('subscribe', dispatcher => {
console.log('New broadcast subscriber!');
Expand Down

0 comments on commit b07f597

Please sign in to comment.