mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
docs: fix VoiceBroadcast documentation (#2277)
This commit is contained in:
parent
edc4e2b751
commit
8a2ace45d8
1 changed files with 2 additions and 3 deletions
|
|
@ -9,13 +9,12 @@ const PlayInterface = require('./util/PlayInterface');
|
|||
* Example usage:
|
||||
* ```js
|
||||
* const broadcast = client.createVoiceBroadcast();
|
||||
* broadcast.playFile('./music.mp3');
|
||||
* broadcast.play('./music.mp3');
|
||||
* // Play "music.mp3" in all voice connections that the client is in
|
||||
* for (const connection of client.voiceConnections.values()) {
|
||||
* connection.playBroadcast(broadcast);
|
||||
* connection.play(broadcast);
|
||||
* }
|
||||
* ```
|
||||
* @implements {VolumeInterface}
|
||||
* @implements {PlayInterface}
|
||||
*/
|
||||
class VoiceBroadcast extends EventEmitter {
|
||||
|
|
|
|||
Loading…
Reference in a new issue