Skip to content

Commit

Permalink
Added flags to followups
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Aug 6, 2021
1 parent dcafd44 commit 2f3aefa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions interactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,7 @@ type InteractionResponseData struct {
Components []MessageComponent `json:"components"`
Embeds []*MessageEmbed `json:"embeds,omitempty"`
AllowedMentions *MessageAllowedMentions `json:"allowed_mentions,omitempty"`

// NOTE: Undocumented feature, be careful with it.
Flags uint64 `json:"flags,omitempty"`

Files []*File `json:"-"`
Flags uint64 `json:"flags,omitempty"`
}

// VerifyInteraction implements message verification of the discord interactions api
Expand Down
2 changes: 2 additions & 0 deletions webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ type WebhookParams struct {
Components []MessageComponent `json:"components"`
Embeds []*MessageEmbed `json:"embeds,omitempty"`
AllowedMentions *MessageAllowedMentions `json:"allowed_mentions,omitempty"`
// NOTE: Works only for followup messages.
Flags uint64 `json:"flags,omitempty"`
}

// WebhookEdit stores data for editing of a webhook message.
Expand Down

0 comments on commit 2f3aefa

Please sign in to comment.