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

gateway: Clarify field presence for InteractionCreateEvent

This commit is contained in:
diamondburned 2021-05-29 21:30:20 -07:00
parent 10c8837000
commit 694d6a2bba

View file

@ -375,13 +375,17 @@ type (
AppID discord.AppID `json:"application_id"`
Type InteractionType `json:"type"`
Data *InteractionData `json:"data,omitempty"`
GuildID discord.GuildID `json:"guild_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"`
Version int `json:"version"`
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"`
}
)