Big bugs fixed
This commit is contained in:
parent
dbeb2b55ab
commit
548aadabfb
@ -324,7 +324,8 @@ namespace NadekoBot.Modules {
|
||||
.Do(async e => {
|
||||
string str = "Bye";
|
||||
foreach (var u in e.Message.MentionedUsers) {
|
||||
str += " " + u.Mention;
|
||||
if(u.Id != NadekoBot.client.CurrentUser.Id)
|
||||
str += " " + u.Mention;
|
||||
}
|
||||
await e.Send(str);
|
||||
});
|
||||
|
@ -94,9 +94,9 @@ namespace NadekoBot.Modules {
|
||||
}
|
||||
|
||||
try {
|
||||
if (player.VoiceChannel.Server != e.Server)
|
||||
if (e.User.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);
|
||||
var sr = await player.CreateStreamRequest(e, e.GetArg("query"), e.User.VoiceChannel);
|
||||
if (sr == null)
|
||||
throw new NullReferenceException("StreamRequest is null.");
|
||||
Message msg = null;
|
||||
|
Loading…
Reference in New Issue
Block a user