RESUMED.js (440B)
1 'use strict'; 2 3 const { Events } = require('../../../util/Constants'); 4 5 module.exports = (client, packet, shard) => { 6 const replayed = shard.sequence - shard.closeSequence; 7 /** 8 * Emitted when a shard resumes successfully. 9 * @event Client#shardResume 10 * @param {number} id The shard ID that resumed 11 * @param {number} replayedEvents The amount of replayed events 12 */ 13 client.emit(Events.SHARD_RESUME, shard.id, replayed); 14 };