mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
src/client/websocket/packets/WebSocketPacketManager.js
Unify ready and reconnecting properties into a single status property and future-proof Message class The state of the WebSocketManager is now represented by a single status property, removing emittedReady and reconnecting as representations of state. Message class will now also cache users it isn't aware of that appear in mentions and authors.
This commit is contained in:
@@ -25,7 +25,7 @@ class ClientDataStore extends AbstractDataStore{
|
||||
}
|
||||
|
||||
get pastReady() {
|
||||
return this.client.ws.emittedReady;
|
||||
return this.client.ws.status === Constants.Status.READY;
|
||||
}
|
||||
|
||||
NewGuild(data) {
|
||||
|
||||
Reference in New Issue
Block a user