mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
docs: document the messages property for all TextBasedChannels (#2373)
* Document TextChannel#messages * Same for DMChannels * And GroupDMChannels
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user