mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(bot): don't send internal error messages for some errors that should be on sentry
This commit is contained in:
parent
026a822c74
commit
2602763e25
2 changed files with 13 additions and 1 deletions
|
|
@ -231,6 +231,8 @@ public class Bot
|
|||
if (_config.DisableErrorReporting)
|
||||
return;
|
||||
|
||||
if (!exc.ShowToUser()) return;
|
||||
|
||||
// Once we've sent it to Sentry, report it to the user (if we have permission to)
|
||||
var reportChannel = handler.ErrorChannelFor(evt, _config.ClientId);
|
||||
if (reportChannel == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue