Preview environment

interface MessageReference

export interface MessageReference

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 (MessageFlags.Crossposted)* MessageType.ChannelPinnedMessage* MessageType.ChannelFollowAdd* MessageType.Reply* MessageType.ThreadStarterMessage

See also: https://discord.com/developers/docs/resources/message#message-object-message-types

channelId : Snowflake

The channel id that was referenced

guildId : Snowflake | undefined

The guild id that was referenced

messageId : Snowflake | undefined

The message id that was referenced