1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-10-02 07:18:49 +00:00

API: add MessageReference

This commit is contained in:
mavolin 2020-11-03 18:36:07 +01:00 committed by diamondburned
parent 88258b51c2
commit e3c85094a7

View file

@ -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 {