mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +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) {
|
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() { }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue