docs: document the messages property for all TextBasedChannels (#2373)

* Document TextChannel#messages

* Same for DMChannels

* And GroupDMChannels
This commit is contained in:
Frangu Vlad
2018-03-03 12:04:33 +02:00
committed by SpaceEEC
parent cf7dcba1a5
commit 069dccfa3b
3 changed files with 12 additions and 0 deletions

View File

@@ -13,6 +13,10 @@ const MessageStore = require('../stores/MessageStore');
class TextChannel extends GuildChannel {
constructor(guild, data) {
super(guild, data);
/**
* A collection containing the messages sent to this channel
* @type {MessageStore<Snowflake, Message>}
*/
this.messages = new MessageStore(this);
this._typing = new Map();
}