mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs: incorrect returns
This commit is contained in:
@@ -477,7 +477,7 @@ class Guild {
|
||||
|
||||
/**
|
||||
* Fetch all webhooks for the guild.
|
||||
* @returns {Collection<Snowflake, Webhook>}
|
||||
* @returns {Promise<Collection<Snowflake, Webhook>>}
|
||||
* @example
|
||||
* // Fetch webhooks
|
||||
* guild.fetchWebhooks()
|
||||
@@ -490,7 +490,7 @@ class Guild {
|
||||
|
||||
/**
|
||||
* Fetch available voice regions.
|
||||
* @returns {Collection<string, VoiceRegion>}
|
||||
* @returns {Promise<Collection<string, VoiceRegion>>}
|
||||
* @example
|
||||
* // Fetch voice regions
|
||||
* guild.fetchVoiceRegions()
|
||||
@@ -732,7 +732,7 @@ class Guild {
|
||||
* @example
|
||||
* // Edit the guild AFK channel
|
||||
* guild.setAFKChannel(channel)
|
||||
* .then(g => console.log(`Updated guild AFK channel to ${g.afkChannel}`))
|
||||
* .then(g => console.log(`Updated guild AFK channel to ${g.afkChannel.name}`))
|
||||
* .catch(console.error);
|
||||
*/
|
||||
setAFKChannel(afkChannel, reason) {
|
||||
|
||||
Reference in New Issue
Block a user