Add httpErrorHandler

This commit is contained in:
Runebaas 2017-11-27 22:07:05 +01:00
parent c4f10f3f7b
commit 53debf9c9d
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
3 changed files with 24 additions and 3 deletions

View file

@ -83,7 +83,7 @@ namespace Geekbot.net.Commands
}
catch (HttpException e)
{
await Context.Channel.SendMessageAsync("Seems like i don't have enough permission to give roles...");
_errorHandler.HandleHttpException(e, Context);
}
catch (Exception e)
{