mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
docs: document lastMessageID for TextChannel and (Group)DMChannel (#2602)
* Adds JSDocs for TextChannel.lastMessageID * oops * docs: document lastMessageID in (Group)DMChannel as well
This commit is contained in:
committed by
SpaceEEC
parent
6de5acbac3
commit
507cce3ff4
@@ -24,6 +24,10 @@ class DMChannel extends Channel {
|
|||||||
*/
|
*/
|
||||||
this.recipient = this.client.dataManager.newUser(data.recipients[0]);
|
this.recipient = this.client.dataManager.newUser(data.recipients[0]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The ID of the last message in the channel, if one was sent
|
||||||
|
* @type {?Snowflake}
|
||||||
|
*/
|
||||||
this.lastMessageID = data.last_message_id;
|
this.lastMessageID = data.last_message_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -94,6 +94,10 @@ class GroupDMChannel extends Channel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The ID of the last message in the channel, if one was sent
|
||||||
|
* @type {?Snowflake}
|
||||||
|
*/
|
||||||
this.lastMessageID = data.last_message_id;
|
this.lastMessageID = data.last_message_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ class TextChannel extends GuildChannel {
|
|||||||
*/
|
*/
|
||||||
this.nsfw = Boolean(data.nsfw);
|
this.nsfw = Boolean(data.nsfw);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The ID of the last message sent in this channel, if one was sent
|
||||||
|
* @type {?Snowflake}
|
||||||
|
*/
|
||||||
this.lastMessageID = data.last_message_id;
|
this.lastMessageID = data.last_message_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user