mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Don't try to parse webhook error if error isn't JSON
This commit is contained in:
parent
dee229b08c
commit
792acad50a
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ namespace PluralKit.Bot
|
||||||
}
|
}
|
||||||
catch (NotFoundException e)
|
catch (NotFoundException e)
|
||||||
{
|
{
|
||||||
if (e.JsonMessage.Contains("10015") && !hasRetried)
|
if (e.JsonMessage != null && e.JsonMessage.Contains("10015") && !hasRetried)
|
||||||
{
|
{
|
||||||
// Error 10015 = "Unknown Webhook" - this likely means the webhook was deleted
|
// Error 10015 = "Unknown Webhook" - this likely means the webhook was deleted
|
||||||
// but is still in our cache. Invalidate, refresh, try again
|
// but is still in our cache. Invalidate, refresh, try again
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue