Only report command errors to sentry and other minor tweaks
This commit is contained in:
parent
fb169738fe
commit
c4f10f3f7b
6 changed files with 44 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue