Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
feat: Add flags field to CreateInteractionResponseData (#494)
Browse files Browse the repository at this point in the history
* Add flags field to CreateInteractionResponseData

* Use MessageFlag for CreateInteractionResponseData flags
  • Loading branch information
Hassie authored Mar 17, 2022
1 parent e8d7457 commit 571e427
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions interaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ type CreateInteractionResponseData struct {
Components []*MessageComponent `json:"components"`
Attachments []*Attachment `json:"attachments"`
AllowedMentions *AllowedMentions `json:"allowed_mentions,omitempty"`
Flags MessageFlag `json:"flags,omitempty"` // Only SUPPRESS_EMBEDS and EPHEMERAL flags allowed.

Files []CreateMessageFile `json:"-"`

Expand Down

0 comments on commit 571e427

Please sign in to comment.