backport: docs improvements

This commit is contained in:
Lewdcario
2018-04-26 01:25:44 -05:00
parent d7e7803178
commit 384e96d51e
8 changed files with 30 additions and 9 deletions

View File

@@ -52,6 +52,11 @@ class TextChannel extends GuildChannel {
/**
* Fetch all webhooks for the channel.
* @returns {Promise<Collection<Snowflake, Webhook>>}
* @example
* // Fetch webhooks
* channel.fetchWebhooks()
* .then(hooks => console.log(`This channel has ${hooks.size} hooks`))
* .catch(console.error);
*/
fetchWebhooks() {
return this.client.rest.methods.getChannelWebhooks(this);