mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-27 01:02:58 +00:00
fixup
This commit is contained in:
parent
b51a6fc5a6
commit
6dd2d4144b
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue