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:
parent
530f0c5622
commit
6412cf74ff
|
@ -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"`
|
||||||
|
|
Loading…
Reference in a new issue