Filter Discord 500s out
This commit is contained in:
parent
ece03ff85e
commit
0ac180c4e6
@ -35,7 +35,10 @@ namespace PluralKit.Bot
|
|||||||
if (e is BadRequestException bre && bre.WebResponse.Response.Contains("<center>nginx</center>")) return false;
|
if (e is BadRequestException bre && bre.WebResponse.Response.Contains("<center>nginx</center>")) return false;
|
||||||
if (e is NotFoundException ne && ne.WebResponse.Response.Contains("<center>nginx</center>")) return false;
|
if (e is NotFoundException ne && ne.WebResponse.Response.Contains("<center>nginx</center>")) return false;
|
||||||
if (e is UnauthorizedException ue && ue.WebResponse.Response.Contains("<center>nginx</center>")) return false;
|
if (e is UnauthorizedException ue && ue.WebResponse.Response.Contains("<center>nginx</center>")) return false;
|
||||||
|
|
||||||
|
// 500s? also not our problem :^)
|
||||||
|
if (e is ServerErrorException) return false;
|
||||||
|
|
||||||
// Webhook server errors are also *not our problem*
|
// Webhook server errors are also *not our problem*
|
||||||
// (this includes rate limit errors, WebhookRateLimited is a subclass)
|
// (this includes rate limit errors, WebhookRateLimited is a subclass)
|
||||||
if (e is WebhookExecutionErrorOnDiscordsEnd) return false;
|
if (e is WebhookExecutionErrorOnDiscordsEnd) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user