From 020afdfd52c56935224b518faf0b6deaee9d32ce Mon Sep 17 00:00:00 2001 From: Skillz Date: Wed, 13 May 2020 17:01:06 -0400 Subject: [PATCH] handle op 7 --- module/shard.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/shard.ts b/module/shard.ts index e107ede4b..5cffb83d1 100644 --- a/module/shard.ts +++ b/module/shard.ts @@ -62,7 +62,11 @@ export const createShard = async ( case GatewayOpcode.Reconnect: case GatewayOpcode.InvalidSession: // Reconnect to the gateway https://discordapp.com/developers/docs/topics/gateway#reconnect - // I think this should be handled automatically when the websocket closes + resumeInterval = await resumeConnection( + identifyPayload, + botGatewayData, + shardSocket, + ); break; case GatewayOpcode.Resume: clearInterval(resumeInterval);