mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-07-23 13:20:51 +00:00
Compare commits
2 commits
e872f98c87
...
acb7b4a18b
Author | SHA1 | Date | |
---|---|---|---|
|
acb7b4a18b | ||
|
6dd2d4144b |
|
@ -24,7 +24,7 @@ type Message struct {
|
||||||
Flags MessageFlags `json:"flags"`
|
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.)
|
// 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 specifies whether the was a TTS message.
|
||||||
TTS bool `json:"tts"`
|
TTS bool `json:"tts"`
|
||||||
|
@ -368,9 +368,14 @@ func (m MessageApplication) CreatedAt() time.Time {
|
||||||
return m.ID.Time()
|
return m.ID.Time()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type MessageSnapshot struct {
|
||||||
|
// The embedded partial message object
|
||||||
|
Message *Message `json:"message"`
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// A standard reference used by replies.
|
// A standard reference used by replies.
|
||||||
MessageReferenceTypeDefault = iota
|
MessageReferenceTypeDefault MessageReferenceType = iota
|
||||||
// Reference used to point to a message at a point in time.
|
// Reference used to point to a message at a point in time.
|
||||||
MessageReferenceTypeForward
|
MessageReferenceTypeForward
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue