mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
Simplify VolumeInterface constructor
This commit is contained in:
parent
4a1b55d145
commit
dd618584d0
1 changed files with 2 additions and 2 deletions
|
|
@ -5,9 +5,9 @@ const EventEmitter = require('events');
|
|||
* @extends {EventEmitter}
|
||||
*/
|
||||
class VolumeInterface extends EventEmitter {
|
||||
constructor({ volume = 0 } = {}) {
|
||||
constructor({ volume = 1 } = {}) {
|
||||
super();
|
||||
this.setVolume(volume || 1);
|
||||
this.setVolume(volume);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue