diff --git a/src/structures/DMChannel.js b/src/structures/DMChannel.js index 063c0728..f78dd368 100644 --- a/src/structures/DMChannel.js +++ b/src/structures/DMChannel.js @@ -24,6 +24,10 @@ class DMChannel extends Channel { */ 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; } diff --git a/src/structures/GroupDMChannel.js b/src/structures/GroupDMChannel.js index 0bbfd612..146ba1ff 100644 --- a/src/structures/GroupDMChannel.js +++ b/src/structures/GroupDMChannel.js @@ -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; } diff --git a/src/structures/TextChannel.js b/src/structures/TextChannel.js index dcaa3d97..20b9d497 100644 --- a/src/structures/TextChannel.js +++ b/src/structures/TextChannel.js @@ -31,6 +31,10 @@ class TextChannel extends GuildChannel { */ 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; }