mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-27 09:12:53 +00:00
api: Add and deprecate EphemeralResponse
Follow-up to previous commit.
This commit is contained in:
parent
530f0c5622
commit
6412cf74ff
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue