default volume
This commit is contained in:
1 parent
260f57372a
commit
2e3fbc3411
2 files changed
+33
-9
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user