DiscordMessageReference
Documentation / @discordeno/bot / DiscordMessageReference
Interface: DiscordMessageReference
Defined in: packages/types/dist/types/discord.d.ts:1371
https://discord.com/developers/docs/resources/channel#message-object-message-reference-structure
Properties
channel_id?
optional
channel_id:string
Defined in: packages/types/dist/types/discord.d.ts:1380
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.d.ts:1384
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.d.ts:1382
id of the originating message's guild
message_id?
optional
message_id:string
Defined in: packages/types/dist/types/discord.d.ts:1375
id of the originating message
type?
optional
type:DiscordMessageReferenceType
Defined in: packages/types/dist/types/discord.d.ts:1373
Type of reference