Fix for bulkDelete, acknowledge, createInvite and remove some redundant stuff (#1515)

This commit is contained in:
SpaceEEC
2017-05-21 22:04:57 +02:00
committed by Crawl
parent a0df2c5fa4
commit fce15ba33c
4 changed files with 6 additions and 6 deletions

View File

@@ -359,7 +359,7 @@ class Client extends EventEmitter {
* @returns {Collection<string, VoiceRegion>}
*/
fetchVoiceRegions() {
return this.rest.api.voice.regions.get().then(res => {
return this.api.voice.regions.get().then(res => {
const regions = new Collection();
for (const region of res) regions.set(region.id, new VoiceRegion(region));
return regions;