mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-12-01 03:03:48 +00:00
gateway: Clarify field presence for InteractionCreateEvent
This commit is contained in:
parent
10c8837000
commit
694d6a2bba
|
@ -375,13 +375,17 @@ type (
|
||||||
AppID discord.AppID `json:"application_id"`
|
AppID discord.AppID `json:"application_id"`
|
||||||
Type InteractionType `json:"type"`
|
Type InteractionType `json:"type"`
|
||||||
Data *InteractionData `json:"data,omitempty"`
|
Data *InteractionData `json:"data,omitempty"`
|
||||||
GuildID discord.GuildID `json:"guild_id,omitempty"`
|
|
||||||
ChannelID discord.ChannelID `json:"channel_id,omitempty"`
|
ChannelID discord.ChannelID `json:"channel_id,omitempty"`
|
||||||
Member *discord.Member `json:"member,omitempty"`
|
|
||||||
User *discord.User `json:"user,omitempty"`
|
|
||||||
Token string `json:"token"`
|
Token string `json:"token"`
|
||||||
Version int `json:"version"`
|
Version int `json:"version"`
|
||||||
Message *discord.Message `json:"message"`
|
Message *discord.Message `json:"message"`
|
||||||
|
|
||||||
|
// Member is only present if this came from a guild.
|
||||||
|
Member *discord.Member `json:"member,omitempty"`
|
||||||
|
GuildID discord.GuildID `json:"guild_id,omitempty"`
|
||||||
|
|
||||||
|
// User is only present if this didn't come from a guild.
|
||||||
|
User *discord.User `json:"user,omitempty"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue