Skip to content

Commit

Permalink
docs: fix voice broadcast example code (#3436)
Browse files Browse the repository at this point in the history
client.createVoiceBroadcast() -> client.voice.createBroadcast()
  • Loading branch information
n3oney authored and SpaceEEC committed Aug 18, 2019
1 parent c786867 commit 3fcc862
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 3fcc862

Please sign in to comment.