mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
handle op 7
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user