mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Add get status() for Client (#622)
* Add get status() for Client * Fix trailing space
This commit is contained in:
parent
bd113eef06
commit
6dfe160c52
1 changed files with 9 additions and 0 deletions
|
|
@ -219,6 +219,15 @@ class Client extends EventEmitter {
|
|||
this.guilds.map(g => g.emojis.map(e => emojis.set(e.id, e)));
|
||||
return emojis;
|
||||
}
|
||||
|
||||
/**
|
||||
* The status for the logged in Client.
|
||||
* @readonly
|
||||
* @type {?number}
|
||||
*/
|
||||
get status() {
|
||||
return this.ws.status;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Client;
|
||||
|
|
|
|||
Loading…
Reference in a new issue