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