Only report command errors to sentry and other minor tweaks

This commit is contained in:
Runebaas 2017-11-27 21:57:26 +01:00
parent fb169738fe
commit c4f10f3f7b
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
6 changed files with 44 additions and 15 deletions

View file

@ -5,6 +5,7 @@ using System.Threading.Tasks;
using AngleSharp;
using Discord;
using Discord.Commands;
using Discord.Net;
using Geekbot.net.Lib;
using StackExchange.Redis;
@ -80,6 +81,10 @@ namespace Geekbot.net.Commands
}
await ReplyAsync("That role doesn't seem to exist");
}
catch (HttpException e)
{
await Context.Channel.SendMessageAsync("Seems like i don't have enough permission to give roles...");
}
catch (Exception e)
{
_errorHandler.HandleCommandException(e, Context);