mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
docs(Client): fetchVoiceRegions returns a promise
This commit is contained in:
@@ -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(', ')}`))
|
||||||
|
|||||||
Reference in New Issue
Block a user