From 6412cf74ff7d7031cd2032e8a2df1188e7457a84 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Thu, 18 Aug 2022 23:25:13 -0700 Subject: [PATCH] api: Add and deprecate EphemeralResponse Follow-up to previous commit. --- api/interaction.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/interaction.go b/api/interaction.go index 3369590..a4ced0f 100644 --- a/api/interaction.go +++ b/api/interaction.go @@ -34,6 +34,12 @@ const ( // Deprecated: use discord.MessageFlags instead. type InteractionResponseFlags = discord.MessageFlags +// EphemeralMessage specifies whether the message is only visible to the user +// who invoked the Interaction. +// +// Deprecated: use discord.EphemeralMessage instead. +const EphemeralResponse InteractionResponseFlags = discord.EphemeralMessage + type InteractionResponse struct { Type InteractionResponseType `json:"type"` Data *InteractionResponseData `json:"data,omitempty"`