mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-02-08 12:36:58 +00:00
discord: Add Flags field to InteractionResponseData
This commit is contained in:
parent
68313eb872
commit
134f49d00f
|
@ -28,6 +28,12 @@ type InteractionResponse struct {
|
||||||
Data *InteractionResponseData `json:"data,omitempty"`
|
Data *InteractionResponseData `json:"data,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// InteractionResponseFlags implements flags for an InteractionApplicationCommandCallbackData.
|
||||||
|
// https://discord.com/developers/docs/interactions/slash-commands#interaction-response-interactionapplicationcommandcallbackdata
|
||||||
|
type InteractionResponseFlags uint
|
||||||
|
|
||||||
|
const EphemeralResponse InteractionResponseFlags = 64
|
||||||
|
|
||||||
// InteractionResponseData is InteractionApplicationCommandCallbackData in the
|
// InteractionResponseData is InteractionApplicationCommandCallbackData in the
|
||||||
// official documentation.
|
// official documentation.
|
||||||
type InteractionResponseData struct {
|
type InteractionResponseData struct {
|
||||||
|
@ -36,6 +42,7 @@ type InteractionResponseData struct {
|
||||||
Components *[]discord.Component `json:"components,omitempty"`
|
Components *[]discord.Component `json:"components,omitempty"`
|
||||||
Embeds *[]discord.Embed `json:"embeds,omitempty"`
|
Embeds *[]discord.Embed `json:"embeds,omitempty"`
|
||||||
AllowedMentions *AllowedMentions `json:"allowed_mentions,omitempty"`
|
AllowedMentions *AllowedMentions `json:"allowed_mentions,omitempty"`
|
||||||
|
Flags InteractionResponseFlags `json:"flags,omitempty"`
|
||||||
Files []sendpart.File `json:"-"`
|
Files []sendpart.File `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue