mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Volume stuff docs fixes (#1354)
* Volume stuff docs fixes * 10/10 for spelling
This commit is contained in:
parent
3bc90dcbf1
commit
6d4fe89212
3 changed files with 6 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ const ffmpegArguments = [
|
|||
|
||||
/**
|
||||
* A voice broadcast can be played across multiple voice connections for improved shared-stream efficiency.
|
||||
* @extends {EventEmitter}
|
||||
* @implements {VolumeInterface}
|
||||
*/
|
||||
class VoiceBroadcast extends VolumeInterface {
|
||||
constructor(client) {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ nonce.fill(0);
|
|||
* const dispatcher = connection.playFile('./file.mp3');
|
||||
* });
|
||||
* ```
|
||||
* @extends {EventEmitter}
|
||||
* @implements {VolumeInterface}
|
||||
*/
|
||||
class StreamDispatcher extends VolumeInterface {
|
||||
constructor(player, stream, streamOptions) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
const EventEmitter = require('events');
|
||||
|
||||
/**
|
||||
* An interface class for volume transformation.
|
||||
* @extends {EventEmitter}
|
||||
*/
|
||||
class VolumeInterface extends EventEmitter {
|
||||
constructor({ volume = 0 } = {}) {
|
||||
super();
|
||||
|
|
|
|||
Loading…
Reference in a new issue