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