mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 08:11:50 +00:00
docs(Client): fetchVoiceRegions returns a promise
This commit is contained in:
parent
19ef45130b
commit
6cd4c27fae
1 changed files with 1 additions and 1 deletions
|
|
@ -256,7 +256,7 @@ class Client extends BaseClient {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Obtains the available voice regions from Discord.
|
* Obtains the available voice regions from Discord.
|
||||||
* @returns {Collection<string, VoiceRegion>}
|
* @returns {Promise<Collection<string, VoiceRegion>>}
|
||||||
* @example
|
* @example
|
||||||
* client.fetchVoiceRegions()
|
* client.fetchVoiceRegions()
|
||||||
* .then(regions => console.log(`Available regions are: ${regions.map(region => region.name).join(', ')}`))
|
* .then(regions => console.log(`Available regions are: ${regions.map(region => region.name).join(', ')}`))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue