small v+t fix

This commit is contained in:
Kwoth 2017-01-29 13:34:11 +01:00
parent 5b77e2eb90
commit 0e9fa33591

View File

@ -82,7 +82,7 @@ namespace NadekoBot.Modules.Administration
sendMessages: PermValue.Deny)).ConfigureAwait(false);
}
var afterVch = after.VoiceChannel;
if (afterVch != null && guild.AFKChannel.Id != afterVch.Id)
if (afterVch != null && guild.AFKChannel?.Id != afterVch.Id)
{
ITextChannel textChannel = guild.TextChannels
.Where(t => t.Name == GetChannelName(afterVch.Name).ToLowerInvariant())