From 93a83c2cf7c8f973b62242f8440fa0527b73c027 Mon Sep 17 00:00:00 2001 From: Rodry <38259440+ImRodry@users.noreply.github.com> Date: Tue, 17 Aug 2021 21:50:14 +0100 Subject: [PATCH] docs(MessageReference): add possible message types (#6464) --- src/structures/Message.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 5db39b502..eb04aa91e 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -282,7 +282,14 @@ class Message extends Base { } /** - * Reference data sent in a message that contains ids identifying the referenced message + * Reference data sent in a message that contains ids identifying the referenced message. + * This can be present in the following types of message: + * * Crossposted messages (IS_CROSSPOST {@link MessageFlags#FLAGS message flag}) + * * CHANNEL_FOLLOW_ADD + * * CHANNEL_PINNED_MESSAGE + * * REPLY + * * THREAD_STARTER_MESSAGE + * @see {@link https://discord.com/developers/docs/resources/channel#message-types} * @typedef {Object} MessageReference * @property {Snowflake} channelId The channel's id the message was referenced * @property {?Snowflake} guildId The guild's id the message was referenced