Skip to content

Commit

Permalink
Add MessageCall
Browse files Browse the repository at this point in the history
  • Loading branch information
mlnrDev committed May 15, 2024
1 parent f53e3fb commit d201345
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions discord/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ type Message struct {
InteractionMetadata *InteractionMetadata `json:"interaction_metadata,omitempty"`
Resolved *ResolvedData `json:"resolved,omitempty"`
Poll *Poll `json:"poll,omitempty"`
Call *MessageCall `json:"call,omitempty"`
}

func (m *Message) UnmarshalJSON(data []byte) error {
Expand Down Expand Up @@ -477,3 +478,8 @@ type InteractionMetadata struct {
InteractedMessageID *snowflake.ID `json:"interacted_message_id"`
TriggeringInteractionMetadata *InteractionMetadata `json:"triggering_interaction_metadata"`
}

type MessageCall struct {
Participants []snowflake.ID `json:"participants"`
EndedTimestamp *time.Time `json:"ended_timestamp"`
}

0 comments on commit d201345

Please sign in to comment.