From 23f5771325e498f1d494aae41ab71c3a767411c6 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 25 Feb 2022 14:10:31 +0100 Subject: [PATCH] gateway: Remove 4003 from fatal close codes (#316) https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes --- gateway/gateway.go | 1 - 1 file changed, 1 deletion(-) diff --git a/gateway/gateway.go b/gateway/gateway.go index 4ac9112..ca88e5c 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -139,7 +139,6 @@ var DefaultGatewayOpts = ws.GatewayOpts{ // the gateway to exit. In other words, it's a list of unrecoverable close // codes. FatalCloseCodes: []int{ - 4003, // not authenticated 4004, // authentication failed 4010, // invalid shard sent 4011, // sharding required