mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 21:43:33 +01:00
Re add <Client>.uptime (#579)
This commit is contained in:
@@ -193,6 +193,15 @@ class Client extends EventEmitter {
|
|||||||
return this.voice.connections;
|
return this.voice.connections;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The uptime for the logged in Client.
|
||||||
|
* @readonly
|
||||||
|
* @type {?Number}
|
||||||
|
*/
|
||||||
|
get uptime() {
|
||||||
|
return this.readyTime ? Date.now() - this.readyTime : null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Client;
|
module.exports = Client;
|
||||||
|
|||||||
Reference in New Issue
Block a user