forked from pothtonswer/discordmuffin
feat(Message): add MessageSnapshots (#1604)
This commit is contained in:
parent
00db80a651
commit
2d15f13e65
1 changed files with 11 additions and 0 deletions
11
message.go
11
message.go
|
@ -135,6 +135,11 @@ type Message struct {
|
|||
// If the field exists but is null, the referenced message was deleted.
|
||||
ReferencedMessage *Message `json:"referenced_message"`
|
||||
|
||||
// The message associated with the message_reference.
|
||||
// This is a minimal subset of fields in a message (e.g. Author is excluded)
|
||||
// NOTE: This field is only returned when referenced when MessageReference.Type is MessageReferenceTypeForward.
|
||||
MessageSnapshots []MessageSnapshot `json:"message_snapshots"`
|
||||
|
||||
// Deprecated, use InteractionMetadata.
|
||||
// Is sent when the message is a response to an Interaction, without an existing message.
|
||||
// This means responses to message component interactions do not include this property,
|
||||
|
@ -471,6 +476,12 @@ type MessageApplication struct {
|
|||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
// MessageSnapshot represents a snapshot of a forwarded message.
|
||||
// https://discord.com/developers/docs/resources/message#message-snapshot-object
|
||||
type MessageSnapshot struct {
|
||||
Message *Message `json:"message"`
|
||||
}
|
||||
|
||||
// MessageReferenceType is a type of MessageReference
|
||||
type MessageReferenceType int
|
||||
|
||||
|
|
Loading…
Reference in a new issue