mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: disable error reporting... again
This commit is contained in:
parent
be443caccf
commit
c9e2425a67
1 changed files with 9 additions and 7 deletions
|
|
@ -252,14 +252,16 @@ namespace PluralKit.Bot
|
||||||
|
|
||||||
SentrySdk.CaptureEvent(sentryEvent, sentryScope);
|
SentrySdk.CaptureEvent(sentryEvent, sentryScope);
|
||||||
|
|
||||||
// Once we've sent it to Sentry, report it to the user (if we have permission to)
|
// most of these errors aren't useful...
|
||||||
var reportChannel = handler.ErrorChannelFor(evt);
|
|
||||||
if (reportChannel == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
var botPerms = PermissionsIn(reportChannel.Value);
|
// // Once we've sent it to Sentry, report it to the user (if we have permission to)
|
||||||
if (botPerms.HasFlag(PermissionSet.SendMessages | PermissionSet.EmbedLinks))
|
// var reportChannel = handler.ErrorChannelFor(evt);
|
||||||
await _errorMessageService.SendErrorMessage(reportChannel.Value, sentryEvent.EventId.ToString());
|
// if (reportChannel == null)
|
||||||
|
// return;
|
||||||
|
|
||||||
|
// var botPerms = PermissionsIn(reportChannel.Value);
|
||||||
|
// if (botPerms.HasFlag(PermissionSet.SendMessages | PermissionSet.EmbedLinks))
|
||||||
|
// await _errorMessageService.SendErrorMessage(reportChannel.Value, sentryEvent.EventId.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue