Skip to main content

DiscordMessageReference

Documentation


Documentation / @discordeno/types / DiscordMessageReference

Interface: DiscordMessageReference

Defined in: discord/message.ts:273

https://docs.discord.com/developers/resources/message#message-reference-structure

Properties

channel_id?

optional channel_id?: string

Defined in: discord/message.ts:282

id of the originating message's channel Note: channel_id is optional when creating a reply, but will always be present when receiving an event/response that includes this data model.


fail_if_not_exists?

optional fail_if_not_exists?: boolean

Defined in: discord/message.ts:286

When sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true


guild_id?

optional guild_id?: string

Defined in: discord/message.ts:284

id of the originating message's guild


message_id?

optional message_id?: string

Defined in: discord/message.ts:277

id of the originating message


type?

optional type?: DiscordMessageReferenceType

Defined in: discord/message.ts:275

Type of reference