From efcfdfb77b43fd765d7dd0c031cf8d8185379d66 Mon Sep 17 00:00:00 2001 From: neoney <30625554+n3oney@users.noreply.github.com> Date: Sun, 18 Aug 2019 11:24:31 +0200 Subject: [PATCH] fix voice broadcast example code client.createVoiceBroadcast() -> client.voice.createBroadcast() --- docs/topics/voice.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/voice.md b/docs/topics/voice.md index e48b8b3254e1..6a39f5a3f8b9 100644 --- a/docs/topics/voice.md +++ b/docs/topics/voice.md @@ -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!');