Skip to content

RESTAPIMessageReference

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

Signature

export type RESTAPIMessageReference = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<Required<Pick<APIMessageReference, 'message_id'>>> & StrictPartial<APIMessageReference> & {    fail_if_not_exists?: boolean | undefined;};

Properties

fail_if_not_exists?: boolean | undefined;

Whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message

@defaulttrue