.leaveall leaves all except current. Back to extractor
This commit is contained in:
@ -364,7 +364,7 @@ namespace NadekoBot.Modules {
|
||||
.Description("Nadeko leaves all servers")
|
||||
.Do(e => {
|
||||
if (e.User.Id == NadekoBot.OwnerID)
|
||||
NadekoBot.client.Servers.ForEach(async s => { if (s.Name == "NadekoLog" || s.Name == "Discord Bots") return; await s.Leave(); });
|
||||
NadekoBot.client.Servers.ForEach(async s => { if (s.Name == e.Server.Name) return; await s.Leave(); });
|
||||
});
|
||||
|
||||
|
||||
|
@ -94,6 +94,8 @@ namespace NadekoBot.Modules {
|
||||
}
|
||||
|
||||
try {
|
||||
if (player.VoiceChannel.Server != e.Server)
|
||||
throw new ArgumentException("You need to be in the voice channel on this server.");
|
||||
var sr = await player.CreateStreamRequest(e, e.GetArg("query"), player.VoiceChannel);
|
||||
if (sr == null)
|
||||
throw new NullReferenceException("StreamRequest is null.");
|
||||
|
Reference in New Issue
Block a user