mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
Add get status() for Client (#622)
* Add get status() for Client * Fix trailing space
This commit is contained in:
@@ -219,6 +219,15 @@ class Client extends EventEmitter {
|
|||||||
this.guilds.map(g => g.emojis.map(e => emojis.set(e.id, e)));
|
this.guilds.map(g => g.emojis.map(e => emojis.set(e.id, e)));
|
||||||
return emojis;
|
return emojis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The status for the logged in Client.
|
||||||
|
* @readonly
|
||||||
|
* @type {?number}
|
||||||
|
*/
|
||||||
|
get status() {
|
||||||
|
return this.ws.status;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Client;
|
module.exports = Client;
|
||||||
|
|||||||
Reference in New Issue
Block a user