mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Fix for bulkDelete, acknowledge, createInvite and remove some redundant stuff (#1515)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user