mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
types: fix Client#lastPingTimestamps (#10634)
* types: fix Client#lastPingTimestamps * docs: consistency * types: use ReadonlyCollection
This commit is contained in:
@@ -196,7 +196,7 @@ class Client extends BaseClient {
|
||||
|
||||
/**
|
||||
* The last time a ping was sent (a timestamp) for each WebSocketShard connection
|
||||
* @type {Collection<number,number>}
|
||||
* @type {Collection<number, number>}
|
||||
*/
|
||||
this.lastPingTimestamps = new Collection();
|
||||
|
||||
|
||||
2
packages/discord.js/typings/index.d.ts
vendored
2
packages/discord.js/typings/index.d.ts
vendored
@@ -999,7 +999,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
|
||||
public channels: ChannelManager;
|
||||
public get emojis(): BaseGuildEmojiManager;
|
||||
public guilds: GuildManager;
|
||||
public lastPingTimestamp: number;
|
||||
public lastPingTimestamps: ReadonlyCollection<number, number>;
|
||||
public options: Omit<ClientOptions, 'intents'> & { intents: IntentsBitField };
|
||||
public get ping(): number | null;
|
||||
public get readyAt(): If<Ready, Date>;
|
||||
|
||||
Reference in New Issue
Block a user