mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
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:
@@ -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() { }
|
||||||
|
|||||||
Reference in New Issue
Block a user