mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
docs: improve examples (master branch) (#2209)
* docs: improve examples * more improvements fix maybe this another example collectors * stuff
This commit is contained in:
@@ -69,8 +69,8 @@ class Channel extends Base {
|
||||
* @example
|
||||
* // Delete the channel
|
||||
* channel.delete()
|
||||
* .then() // Success
|
||||
* .catch(console.error); // Log error
|
||||
* then(console.log)
|
||||
* .catch(console.error);
|
||||
*/
|
||||
delete() {
|
||||
return this.client.api.channels(this.id).delete().then(() => this);
|
||||
|
||||
Reference in New Issue
Block a user