From e3c85094a798bc05627628ccaa585c09463abcd5 Mon Sep 17 00:00:00 2001 From: mavolin <48887425+mavolin@users.noreply.github.com> Date: Tue, 3 Nov 2020 18:36:07 +0100 Subject: [PATCH] API: add MessageReference --- api/send.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/send.go b/api/send.go index 0d4cd17..88402ce 100644 --- a/api/send.go +++ b/api/send.go @@ -115,6 +115,13 @@ type SendMessageData struct { // AllowedMentions are the allowed mentions for a message. AllowedMentions *AllowedMentions `json:"allowed_mentions,omitempty"` + // MessageReference allows you to reference another message to create a + // reply. The referenced message must be from the same channel. + // + // Only MessageID is necessary. You may also include a channel_id and + // guild_id in the reference. However, they are not necessary, but will be + // validated if sent. + MessageReference discord.MessageReference `json:"message_reference,omitempty"` } func (data *SendMessageData) WriteMultipart(body *multipart.Writer) error {