Capture interaction exceptions in sentry

This commit is contained in:
Daan Boerlage 2021-11-02 21:56:40 +01:00
parent 44ae2eeaf6
commit 01df35b12b
Signed by: daan
GPG key ID: FCE070E1E4956606

View file

@ -3,6 +3,7 @@ using System.Threading.Tasks;
using Geekbot.Core.Interactions.ApplicationCommand;
using Geekbot.Core.Interactions.Request;
using Geekbot.Core.Interactions.Response;
using Sentry;
namespace Geekbot.Core.Interactions
{
@ -20,7 +21,8 @@ namespace Geekbot.Core.Interactions
public virtual void OnException(Exception exception)
{
if (!SentrySdk.IsEnabled) return;
SentrySdk.CaptureException(exception);
}
public virtual InteractionResponse GetExceptionResponse()