handle op 7

This commit is contained in:
Skillz
2020-05-13 17:01:06 -04:00
parent 14c9c481b0
commit 020afdfd52

View File

@@ -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);