Ignore error 50007 and 50013

This commit is contained in:
runebaas 2018-02-04 14:47:10 +01:00
parent 91d178049b
commit ff1619a62f
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6

View file

@ -42,6 +42,8 @@ namespace Geekbot.net.Lib
{
var errorString = errorMessage == "def" ? _translation.GetString(Context.Guild.Id, "errorHandler", "SomethingWentWrong") : errorMessage;
var errorObj = SimpleConextConverter.ConvertContext(Context);
if (errorObj.Message.Content.Contains("50007")) return;
if (errorObj.Message.Content.Contains("50013")) return;
_logger.Error("Geekbot", "An error ocured", e, errorObj);
if (!string.IsNullOrEmpty(errorMessage))
{