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

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