docs:(TextChannel): add documentation for messages and lastMessage (#2986)

* [docs] add missing docs for <TextChannel>.messages

* add missing doc for <TextChannel>.lastMessage
This commit is contained in:
izexi
2018-12-22 07:25:24 +00:00
committed by SpaceEEC
parent 351f0a32bf
commit 2aa8e1d9c1

View File

@@ -11,6 +11,10 @@ class TextChannel extends GuildChannel {
constructor(guild, data) { constructor(guild, data) {
super(guild, data); super(guild, data);
this.type = 'text'; this.type = 'text';
/**
* A collection containing the messages sent to this channel
* @type {Collection<Snowflake, Message>}
*/
this.messages = new Collection(); this.messages = new Collection();
this._typing = new Map(); this._typing = new Map();
} }
@@ -121,6 +125,7 @@ class TextChannel extends GuildChannel {
// These are here only for documentation purposes - they are implemented by TextBasedChannel // These are here only for documentation purposes - they are implemented by TextBasedChannel
/* eslint-disable no-empty-function */ /* eslint-disable no-empty-function */
get lastMessage() {}
get lastPinAt() {} get lastPinAt() {}
send() { } send() { }
sendMessage() { } sendMessage() { }