mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-05-22 15:21:02 +00:00
API: rename SendMessageData.MessageReference to SendMessageData.Reference and fix omit issues
This commit is contained in:
parent
f9a59ac2e7
commit
d8ccaf78c3
|
@ -115,13 +115,13 @@ type SendMessageData struct {
|
||||||
|
|
||||||
// AllowedMentions are the allowed mentions for a message.
|
// AllowedMentions are the allowed mentions for a message.
|
||||||
AllowedMentions *AllowedMentions `json:"allowed_mentions,omitempty"`
|
AllowedMentions *AllowedMentions `json:"allowed_mentions,omitempty"`
|
||||||
// MessageReference allows you to reference another message to create a
|
// Reference allows you to reference another message to create a reply. The
|
||||||
// reply. The referenced message must be from the same channel.
|
// referenced message must be from the same channel.
|
||||||
//
|
//
|
||||||
// Only MessageID is necessary. You may also include a channel_id and
|
// 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
|
// guild_id in the reference. However, they are not necessary, but will be
|
||||||
// validated if sent.
|
// validated if sent.
|
||||||
MessageReference discord.MessageReference `json:"message_reference,omitempty"`
|
Reference *discord.MessageReference `json:"message_reference,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (data *SendMessageData) WriteMultipart(body *multipart.Writer) error {
|
func (data *SendMessageData) WriteMultipart(body *multipart.Writer) error {
|
||||||
|
|
Loading…
Reference in a new issue