Skip to content

Commit

Permalink
docs: make WebSocketShard.lastPingTimestamp public (#8768)
Browse files Browse the repository at this point in the history
Make WebSocketShard.lastPingTimestamp public
  • Loading branch information
jaw0r3k authored Nov 2, 2022
1 parent 5152abf commit 68c9cb3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/discord.js/src/client/websocket/WebSocketShard.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ class WebSocketShard extends EventEmitter {
/**
* The last time a ping was sent (a timestamp)
* @type {number}
* @private
*/
this.lastPingTimestamp = -1;

Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3179,7 +3179,7 @@ export class WebSocketShard extends EventEmitter {
private closeSequence: number;
private sessionId: string | null;
private resumeURL: string | null;
private lastPingTimestamp: number;
public lastPingTimestamp: number;
private lastHeartbeatAcked: boolean;
private readonly ratelimit: {
queue: unknown[];
Expand Down

0 comments on commit 68c9cb3

Please sign in to comment.