diff --git a/PluralKit.Bot/Utils/MiscUtils.cs b/PluralKit.Bot/Utils/MiscUtils.cs index ee81febc..ed05fd01 100644 --- a/PluralKit.Bot/Utils/MiscUtils.cs +++ b/PluralKit.Bot/Utils/MiscUtils.cs @@ -1,3 +1,4 @@ +using System.Net; using System.Net.Sockets; using Myriad.Rest.Exceptions; @@ -40,6 +41,9 @@ public static class MiscUtils // 5xxs? also not our problem :^) if (e is UnknownDiscordRequestException udre && (int)udre.StatusCode >= 500) return false; + // 409s apparently happen for Discord internal issues. + if (e is UnknownDiscordRequestException udre2 && udre2.StatusCode == HttpStatusCode.Conflict) return false; + // Webhook server errors are also *not our problem* // (this includes rate limit errors, WebhookRateLimited is a subclass) if (e is WebhookExecutionErrorOnDiscordsEnd) return false;