Not everyone needs to set the volume

This commit is contained in:
abalabahaha 2016-03-15 22:09:16 -07:00
parent 8614d4b2a5
commit 27a0361afc
2 changed files with 15 additions and 3 deletions

View file

@ -252,6 +252,8 @@ var VoiceConnection = (function (_EventEmitter) {
if (typeof options === "function") { if (typeof options === "function") {
// options is the callback // options is the callback
callback = options; callback = options;
}
if (typeof options !== "object") {
options = {}; options = {};
} }
options.volume = options.volume !== undefined ? options.volume : this.getVolume(); options.volume = options.volume !== undefined ? options.volume : this.getVolume();
@ -282,6 +284,8 @@ var VoiceConnection = (function (_EventEmitter) {
if (typeof options === "function") { if (typeof options === "function") {
// options is the callback // options is the callback
callback = options; callback = options;
}
if (typeof options !== "object") {
options = {}; options = {};
} }
options.volume = options.volume !== undefined ? options.volume : this.getVolume(); options.volume = options.volume !== undefined ? options.volume : this.getVolume();
@ -312,6 +316,8 @@ var VoiceConnection = (function (_EventEmitter) {
if (typeof options === "function") { if (typeof options === "function") {
// options is the callback // options is the callback
callback = options; callback = options;
}
if (typeof options !== "object") {
options = {}; options = {};
} }
options.volume = options.volume !== undefined ? options.volume : this.getVolume(); options.volume = options.volume !== undefined ? options.volume : this.getVolume();

View file

@ -212,6 +212,8 @@ export default class VoiceConnection extends EventEmitter {
if (typeof options === "function") { if (typeof options === "function") {
// options is the callback // options is the callback
callback = options; callback = options;
}
if (typeof options !== "object") {
options = {}; options = {};
} }
options.volume = options.volume !== undefined ? options.volume : this.getVolume(); options.volume = options.volume !== undefined ? options.volume : this.getVolume();
@ -239,6 +241,8 @@ export default class VoiceConnection extends EventEmitter {
if (typeof options === "function") { if (typeof options === "function") {
// options is the callback // options is the callback
callback = options; callback = options;
}
if (typeof options !== "object") {
options = {}; options = {};
} }
options.volume = options.volume !== undefined ? options.volume : this.getVolume(); options.volume = options.volume !== undefined ? options.volume : this.getVolume();
@ -267,6 +271,8 @@ export default class VoiceConnection extends EventEmitter {
if (typeof options === "function") { if (typeof options === "function") {
// options is the callback // options is the callback
callback = options; callback = options;
}
if (typeof options !== "object") {
options = {}; options = {};
} }
options.volume = options.volume !== undefined ? options.volume : this.getVolume(); options.volume = options.volume !== undefined ? options.volume : this.getVolume();