1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-07-23 13:20:51 +00:00

Compare commits

..

2 commits

Author SHA1 Message Date
hi117 acb7b4a18b
Merge 6dd2d4144b into 6f5a53063f 2024-10-06 18:34:15 +00:00
hi117 6dd2d4144b
fixup 2024-10-06 14:34:02 -04:00

View file

@ -24,7 +24,7 @@ type Message struct {
Flags MessageFlags `json:"flags"`
// The message associated with the message_reference. This is a minimal subset of fields in a message (e.g. author is excluded.)
MessageSnapshots []Message `json:"message_snapshots,omitempty"`
MessageSnapshots []MessageSnapshot `json:"message_snapshots,omitempty"`
// TTS specifies whether the was a TTS message.
TTS bool `json:"tts"`
@ -368,9 +368,14 @@ func (m MessageApplication) CreatedAt() time.Time {
return m.ID.Time()
}
type MessageSnapshot struct {
// The embedded partial message object
Message *Message `json:"message"`
}
const (
// A standard reference used by replies.
MessageReferenceTypeDefault = iota
MessageReferenceTypeDefault MessageReferenceType = iota
// Reference used to point to a message at a point in time.
MessageReferenceTypeForward
)