add voice region getting (#1108)

* add voice region getting

* clean up this mess

* add docstrings

* Update VoiceRegion.js

* Update RESTMethods.js
This commit is contained in:
Gus Caplan
2017-01-18 18:14:44 -06:00
committed by Schuyler Cebulskie
parent ff92905848
commit 3f4cbd07dd
5 changed files with 79 additions and 0 deletions

View File

@@ -322,6 +322,14 @@ class Guild {
return this.client.rest.methods.getGuildWebhooks(this);
}
/**
* Fetch available voice regions
* @returns {Collection<string, VoiceRegion>}
*/
fetchVoiceRegions() {
return this.client.rest.methods.fetchVoiceRegions(this.id);
}
/**
* Fetch a single guild member from a user.
* @param {UserResolvable} user The user to fetch the member for