mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 06:01:03 +00:00
docs: fix voice broadcast example code (#3436)
client.createVoiceBroadcast() -> client.voice.createBroadcast()
This commit is contained in:
parent
c786867bd6
commit
3fcc862c5f
1 changed files with 1 additions and 1 deletions
|
|
@ -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!');
|
||||
|
|
|
|||
Loading…
Reference in a new issue