1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-30 10:43:30 +00:00

api: Add and deprecate EphemeralResponse

Follow-up to previous commit.
This commit is contained in:
diamondburned 2022-08-18 23:25:13 -07:00
parent 530f0c5622
commit 6412cf74ff
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -34,6 +34,12 @@ const (
// Deprecated: use discord.MessageFlags instead. // Deprecated: use discord.MessageFlags instead.
type InteractionResponseFlags = discord.MessageFlags 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 InteractionResponse struct {
Type InteractionResponseType `json:"type"` Type InteractionResponseType `json:"type"`
Data *InteractionResponseData `json:"data,omitempty"` Data *InteractionResponseData `json:"data,omitempty"`