From 2aa8e1d9c1efb7dbdb6c9e417adf1fbe2b2f119e Mon Sep 17 00:00:00 2001 From: izexi <43889168+izexi@users.noreply.github.com> Date: Sat, 22 Dec 2018 07:25:24 +0000 Subject: [PATCH] docs:(TextChannel): add documentation for messages and lastMessage (#2986) * [docs] add missing docs for .messages * add missing doc for .lastMessage --- src/structures/TextChannel.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/structures/TextChannel.js b/src/structures/TextChannel.js index 7237e65d6..c47ba6d1a 100644 --- a/src/structures/TextChannel.js +++ b/src/structures/TextChannel.js @@ -11,6 +11,10 @@ class TextChannel extends GuildChannel { constructor(guild, data) { super(guild, data); this.type = 'text'; + /** + * A collection containing the messages sent to this channel + * @type {Collection} + */ this.messages = new Collection(); this._typing = new Map(); } @@ -121,6 +125,7 @@ class TextChannel extends GuildChannel { // These are here only for documentation purposes - they are implemented by TextBasedChannel /* eslint-disable no-empty-function */ + get lastMessage() {} get lastPinAt() {} send() { } sendMessage() { }