Skip to main content

DiscordMessageReference

@discordeno/botDocs


Documentation / @discordeno/bot / DiscordMessageReference

Interface: DiscordMessageReference

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

Properties

channel_id?

optional channel_id: string

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.

Defined in

packages/types/dist/types/discord.d.ts:1377


fail_if_not_exists

fail_if_not_exists: boolean

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

Defined in

packages/types/dist/types/discord.d.ts:1381


guild_id?

optional guild_id: string

id of the originating message's guild

Defined in

packages/types/dist/types/discord.d.ts:1379


message_id?

optional message_id: string

id of the originating message

Defined in

packages/types/dist/types/discord.d.ts:1372


type?

optional type: DiscordMessageReferenceType

Type of reference

Defined in

packages/types/dist/types/discord.d.ts:1370