Volume stuff docs fixes (#1354)

* Volume stuff docs fixes

* 10/10 for spelling
This commit is contained in:
aemino
2017-04-10 03:50:33 -07:00
committed by Amish Shah
parent 3bc90dcbf1
commit 6d4fe89212
3 changed files with 6 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -1,5 +1,9 @@
const EventEmitter = require('events');
/**
* An interface class for volume transformation.
* @extends {EventEmitter}
*/
class VolumeInterface extends EventEmitter {
constructor({ volume = 0 } = {}) {
super();