From 530f0c56225ff12a26748c37ba91afdc90abd598 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Thu, 18 Aug 2022 23:22:40 -0700 Subject: [PATCH] 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. --- api/interaction.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/interaction.go b/api/interaction.go index 0f669bf..3369590 100644 --- a/api/interaction.go +++ b/api/interaction.go @@ -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"`