Skip to content

Commit

Permalink
Add Client#hello event
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed Oct 13, 2017
1 parent 16de9db commit 1d8271a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/gateway/Shard.js
Expand Up @@ -1569,6 +1569,13 @@ class Shard extends EventEmitter {
this.identify();
}
this.heartbeat();
/**
* Fired when a shard receives an OP:10/HELLO packet
* @event Client#hello
* @prop {String[]} trace The Discord server trace of the gateway and session servers
* @prop {Number} id The ID of the shard
*/
this.client.emit("hello", packet.d._trace, this.id);
break; /* eslint-enable no-unreachable */
}
case OPCodes.HEARTBEAT_ACK: {
Expand Down

0 comments on commit 1d8271a

Please sign in to comment.