mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Volume stuff docs fixes (#1354)
* Volume stuff docs fixes * 10/10 for spelling
This commit is contained in:
@@ -13,7 +13,7 @@ const ffmpegArguments = [
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A voice broadcast can be played across multiple voice connections for improved shared-stream efficiency.
|
* A voice broadcast can be played across multiple voice connections for improved shared-stream efficiency.
|
||||||
* @extends {EventEmitter}
|
* @implements {VolumeInterface}
|
||||||
*/
|
*/
|
||||||
class VoiceBroadcast extends VolumeInterface {
|
class VoiceBroadcast extends VolumeInterface {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ nonce.fill(0);
|
|||||||
* const dispatcher = connection.playFile('./file.mp3');
|
* const dispatcher = connection.playFile('./file.mp3');
|
||||||
* });
|
* });
|
||||||
* ```
|
* ```
|
||||||
* @extends {EventEmitter}
|
* @implements {VolumeInterface}
|
||||||
*/
|
*/
|
||||||
class StreamDispatcher extends VolumeInterface {
|
class StreamDispatcher extends VolumeInterface {
|
||||||
constructor(player, stream, streamOptions) {
|
constructor(player, stream, streamOptions) {
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
const EventEmitter = require('events');
|
const EventEmitter = require('events');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An interface class for volume transformation.
|
||||||
|
* @extends {EventEmitter}
|
||||||
|
*/
|
||||||
class VolumeInterface extends EventEmitter {
|
class VolumeInterface extends EventEmitter {
|
||||||
constructor({ volume = 0 } = {}) {
|
constructor({ volume = 0 } = {}) {
|
||||||
super();
|
super();
|
||||||
|
|||||||
Reference in New Issue
Block a user