All tools / Messages
Message reference reply and forward builder
Build a message_reference object for a reply (type 0) or a forward (type 1), with the required ids.
Result
message_id, then channel_id
A reply needs message_id. channel_id is optional on create and is always present when you receive the message. fail_if_not_exists defaults to true, so a missing message errors instead of sending a normal message. You need READ_MESSAGE_HISTORY or Discord returns 160002, and the target cannot be a system message. A forward requires type, message_id, and channel_id, plus VIEW_CHANNEL. Forwards allow only DEFAULT, REPLY, CHAT_INPUT_COMMAND, and CONTEXT_MENU_COMMAND messages, not polls, calls, or activities. Error 160014 means you cannot read the content you tried to forward.
Related: Message type lookup · allowed_mentions builder