Skip to content

Commit

Permalink
add fields to PartialMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
sebm253 committed Jul 15, 2024
1 parent b418dd6 commit aca9074
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions discord/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,15 @@ type MessageSnapshot struct {
}

type PartialMessage struct {
Content string `json:"content,omitempty"`
Embeds []Embed `json:"embeds,omitempty"`
Attachments []Attachment `json:"attachments"`
CreatedAt time.Time `json:"timestamp"`
EditedTimestamp *time.Time `json:"edited_timestamp"`
Flags MessageFlags `json:"flags"`
Type MessageType `json:"type"`
Content string `json:"content,omitempty"`
Embeds []Embed `json:"embeds,omitempty"`
Attachments []Attachment `json:"attachments"`
CreatedAt time.Time `json:"timestamp"`
EditedTimestamp *time.Time `json:"edited_timestamp"`
Flags MessageFlags `json:"flags"`
Mentions []User `json:"mentions"`
MentionRoles []snowflake.ID `json:"mention_roles"`
}

// MessageInteraction is sent on the Message object when the message is a response to an interaction
Expand Down

0 comments on commit aca9074

Please sign in to comment.