From 507cce3ff49842c04047135df70bc80825c903a2 Mon Sep 17 00:00:00 2001 From: reeeeeeeeeeeeeeeeeeeeeeeeeeeeeee <37480488+reeeeeeeeeeeeeeeeeeeeeeeeeeeeeee@users.noreply.github.com> Date: Sat, 16 Jun 2018 21:10:24 +0100 Subject: [PATCH] docs: document lastMessageID for TextChannel and (Group)DMChannel (#2602) * Adds JSDocs for TextChannel.lastMessageID * oops * docs: document lastMessageID in (Group)DMChannel as well --- src/structures/DMChannel.js | 4 ++++ src/structures/GroupDMChannel.js | 4 ++++ src/structures/TextChannel.js | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/structures/DMChannel.js b/src/structures/DMChannel.js index 063c07286..f78dd3684 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 0bbfd6120..146ba1ff8 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 dcaa3d97d..20b9d4970 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; }