Skip to main content

DiscordMessageReference

@discordeno/bot


Documentation / @discordeno/bot / DiscordMessageReference

Interface: DiscordMessageReference

Defined in: packages/types/dist/types/discord/message.d.ts:250

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

Properties

channel_id?

optional channel_id: string

Defined in: packages/types/dist/types/discord/message.d.ts:259

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

fail_if_not_exists: boolean

Defined in: packages/types/dist/types/discord/message.d.ts:263

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: packages/types/dist/types/discord/message.d.ts:261

id of the originating message's guild


message_id?

optional message_id: string

Defined in: packages/types/dist/types/discord/message.d.ts:254

id of the originating message


type?

optional type: DiscordMessageReferenceType

Defined in: packages/types/dist/types/discord/message.d.ts:252

Type of reference