mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 11:40:41 +00:00
docs: document the messages property for all TextBasedChannels (#2373)
* Document TextChannel#messages * Same for DMChannels * And GroupDMChannels
This commit is contained in:
parent
cf7dcba1a5
commit
069dccfa3b
3 changed files with 12 additions and 0 deletions
|
|
@ -10,6 +10,10 @@ const MessageStore = require('../stores/MessageStore');
|
||||||
class DMChannel extends Channel {
|
class DMChannel extends Channel {
|
||||||
constructor(client, data) {
|
constructor(client, data) {
|
||||||
super(client, data);
|
super(client, data);
|
||||||
|
/**
|
||||||
|
* A collection containing the messages sent to this channel
|
||||||
|
* @type {MessageStore<Snowflake, Message>}
|
||||||
|
*/
|
||||||
this.messages = new MessageStore(this);
|
this.messages = new MessageStore(this);
|
||||||
this._typing = new Map();
|
this._typing = new Map();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,10 @@ const MessageStore = require('../stores/MessageStore');
|
||||||
class GroupDMChannel extends Channel {
|
class GroupDMChannel extends Channel {
|
||||||
constructor(client, data) {
|
constructor(client, data) {
|
||||||
super(client, data);
|
super(client, data);
|
||||||
|
/**
|
||||||
|
* A collection containing the messages sent to this channel
|
||||||
|
* @type {MessageStore<Snowflake, Message>}
|
||||||
|
*/
|
||||||
this.messages = new MessageStore(this);
|
this.messages = new MessageStore(this);
|
||||||
this._typing = new Map();
|
this._typing = new Map();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,10 @@ const MessageStore = require('../stores/MessageStore');
|
||||||
class TextChannel extends GuildChannel {
|
class TextChannel extends GuildChannel {
|
||||||
constructor(guild, data) {
|
constructor(guild, data) {
|
||||||
super(guild, data);
|
super(guild, data);
|
||||||
|
/**
|
||||||
|
* A collection containing the messages sent to this channel
|
||||||
|
* @type {MessageStore<Snowflake, Message>}
|
||||||
|
*/
|
||||||
this.messages = new MessageStore(this);
|
this.messages = new MessageStore(this);
|
||||||
this._typing = new Map();
|
this._typing = new Map();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue