Proper checking for no channel defined
This commit is contained in:
parent
a92e258ed6
commit
7ff86a1a5c
@ -82,7 +82,7 @@ namespace ChaosBot.Discord.Services
|
||||
}
|
||||
|
||||
ISocketMessageChannel messageChannel;
|
||||
if (channelToSendIn != "false")
|
||||
if (channelToSendIn != null)
|
||||
{
|
||||
ulong channelId = Convert.ToUInt64(channelToSendIn.Substring(2, channelToSendIn.Length - 3));
|
||||
messageChannel = context.Guild.GetTextChannel(channelId);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user