mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs: fix voice broadcast example code (#3436)
client.createVoiceBroadcast() -> client.voice.createBroadcast()
This commit is contained in:
@@ -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!');
|
||||
|
||||
Reference in New Issue
Block a user