mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Improve docs a bit
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user