mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
add ClientPresence, remove ClientPresenceStore
This commit is contained in:
@@ -41,9 +41,9 @@ class ClientManager {
|
||||
const timeout = this.client.setTimeout(() => reject(new Error('WS_CONNECTION_TIMEOUT')), 1000 * 300);
|
||||
this.client.api.gateway.get().then(async res => {
|
||||
if (this.client.options.presence != null) { // eslint-disable-line eqeqeq
|
||||
const presence = await this.client.presences._parse(this.client.options.presence);
|
||||
const presence = await this.client.presence._parse(this.client.options.presence);
|
||||
this.client.options.ws.presence = presence;
|
||||
this.client.presences.clientPresence.patch(presence);
|
||||
this.client.presence.patch(presence);
|
||||
}
|
||||
const gateway = `${res.url}/`;
|
||||
this.client.emit(Events.DEBUG, `Using gateway ${gateway}`);
|
||||
|
||||
Reference in New Issue
Block a user