Fix discord provider kick NullReferenceException

Fixes #989
This commit is contained in:
Jordan Brown
2020-05-15 13:00:08 -04:00
parent ce346e4d1c
commit f1003fa3a5
@@ -225,7 +225,7 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
return channelModel;
}
Logger.LogWarning("Cound not map channel {0}! Incorrect type: {1}", channelId, discordChannel.GetType());
Logger.LogWarning("Cound not map channel {0}! Incorrect type: {1}", channelId, discordChannel?.GetType());
return null;
}