mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-02-07 20:17:11 +00:00
api: add and deprecate InteractionResponseFlags
This commit builds upon eb579c8
, which deprecates the type in favor of
an existing one. It adds code that preserves backwards compatibility.
This commit is contained in:
parent
eb579c8e94
commit
530f0c5622
|
@ -28,6 +28,12 @@ const (
|
|||
ModalResponse
|
||||
)
|
||||
|
||||
// InteractionResponseFlags implements flags for an
|
||||
// InteractionApplicationCommandCallbackData.
|
||||
//
|
||||
// Deprecated: use discord.MessageFlags instead.
|
||||
type InteractionResponseFlags = discord.MessageFlags
|
||||
|
||||
type InteractionResponse struct {
|
||||
Type InteractionResponseType `json:"type"`
|
||||
Data *InteractionResponseData `json:"data,omitempty"`
|
||||
|
|
Loading…
Reference in a new issue