default volume

This commit is contained in:
Master Kwoth
2016-02-15 00:52:00 +01:00
parent 260f57372a
commit 2e3fbc3411
2 changed files with 33 additions and 9 deletions

View File

@ -42,9 +42,11 @@ namespace NadekoBot.Classes.Music {
});
}
public MusicControls(Channel voiceChannel, CommandEventArgs e) : this() {
public MusicControls(Channel voiceChannel, CommandEventArgs e, float? vol) : this() {
if (voiceChannel == null)
throw new ArgumentNullException(nameof(voiceChannel));
if (vol != null)
Volume = (float)vol;
VoiceChannel = voiceChannel;
_e = e;
}