1
0
Fork 0
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:
diamondburned 2022-08-18 23:22:40 -07:00
parent eb579c8e94
commit 530f0c5622
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -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"`