mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Port some things, still does not compile
This commit is contained in:
parent
f56c3e819f
commit
23cf06df4c
18 changed files with 543 additions and 538 deletions
|
|
@ -3,8 +3,6 @@ using System.Linq;
|
|||
using System.Net.Sockets;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Discord.Net;
|
||||
|
||||
using Npgsql;
|
||||
|
||||
using PluralKit.Core;
|
||||
|
|
@ -20,7 +18,8 @@ namespace PluralKit.Bot
|
|||
// otherwise we'd blow out our error reporting budget as soon as Discord takes a dump, or something.
|
||||
|
||||
// Discord server errors are *not our problem*
|
||||
if (e is HttpException he && ((int) he.HttpCode) >= 500) return false;
|
||||
// TODO
|
||||
// if (e is DSharpPlus.Exceptions he && ((int) he.HttpCode) >= 500) return false;
|
||||
|
||||
// Webhook server errors are also *not our problem*
|
||||
// (this includes rate limit errors, WebhookRateLimited is a subclass)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue