Improve docs a bit

This commit is contained in:
Crawl
2017-04-30 04:30:44 +02:00
parent 3f8c0a4d11
commit ac92d2cecc
83 changed files with 716 additions and 711 deletions

View File

@@ -1,7 +1,7 @@
const Snowflake = require('../util/Snowflake');
/**
* Represents any channel on Discord
* Represents any channel on Discord.
*/
class Channel {
constructor(client, data) {
@@ -53,13 +53,13 @@ class Channel {
}
/**
* Deletes the channel
* Deletes the channel.
* @returns {Promise<Channel>}
* @example
* // delete the channel
* // Delete the channel
* channel.delete()
* .then() // success
* .catch(console.error); // log error
* .then() // Success
* .catch(console.error); // Log error
*/
delete() {
return this.client.rest.methods.deleteChannel(this);