fix: add type to gateway debug

This commit is contained in:
Skillz4Killz
2022-03-20 10:22:01 +00:00
committed by GitHub
parent 724718162e
commit 187da7fcf1
4 changed files with 28 additions and 10 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ export function resume(gateway: GatewayManager, shardId: number) {
// Get the old data for this shard necessary for resuming
const oldShard = gateway.shards.get(shardId);
if (!oldShard) {
return gateway.debug(`[Error] Trying to resume a shard (id: ${shardId}) that was not first identified.`);
return gateway.debug("GW DEBUG", `[Error] Trying to resume a shard (id: ${shardId}) that was not first identified.`);
}
// HOW TO CLOSE OLD SHARD SOCKET!!!