mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00: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:
parent
351f0a32bf
commit
2aa8e1d9c1
1 changed files with 5 additions and 0 deletions
|
|
@ -11,6 +11,10 @@ class TextChannel extends GuildChannel {
|
|||
constructor(guild, data) {
|
||||
super(guild, data);
|
||||
this.type = 'text';
|
||||
/**
|
||||
* A collection containing the messages sent to this channel
|
||||
* @type {Collection<Snowflake, Message>}
|
||||
*/
|
||||
this.messages = new Collection();
|
||||
this._typing = new Map();
|
||||
}
|
||||
|
|
@ -121,6 +125,7 @@ class TextChannel extends GuildChannel {
|
|||
|
||||
// These are here only for documentation purposes - they are implemented by TextBasedChannel
|
||||
/* eslint-disable no-empty-function */
|
||||
get lastMessage() {}
|
||||
get lastPinAt() {}
|
||||
send() { }
|
||||
sendMessage() { }
|
||||
|
|
|
|||
Loading…
Reference in a new issue