mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
websocket cleanup (#1346)
* websocket cleanup * resume event * Update Resumed.js * Update WebSocketManager.js
This commit is contained in:
@@ -39,15 +39,8 @@ class RESTMethods {
|
||||
return this.rest.makeRequest('post', Endpoints.logout, true, {});
|
||||
}
|
||||
|
||||
getGateway() {
|
||||
return this.rest.makeRequest('get', Endpoints.gateway, true).then(res => {
|
||||
this.client.ws.gateway = `${res.url}/?v=${this.client.options.ws.version}`;
|
||||
return this.client.ws.gateway;
|
||||
});
|
||||
}
|
||||
|
||||
getBotGateway() {
|
||||
return this.rest.makeRequest('get', Endpoints.gateway.bot, true);
|
||||
getGateway(bot = false) {
|
||||
return this.rest.makeRequest('get', bot ? Endpoints.gateway.bot : Endpoints.gateway, true);
|
||||
}
|
||||
|
||||
fetchVoiceRegions(guildID) {
|
||||
|
||||
Reference in New Issue
Block a user