Allow marshaling of data field in interactions

This commit is contained in:
Carson Hoffman 2021-12-27 21:34:15 -05:00
parent fccf6db03e
commit 7c455ffc70
No known key found for this signature in database
GPG key ID: 05B660CB452C657F

View file

@ -131,7 +131,7 @@ func (t InteractionType) String() string {
type Interaction struct {
ID string `json:"id"`
Type InteractionType `json:"type"`
Data InteractionData `json:"-"`
Data InteractionData `json:"data"`
GuildID string `json:"guild_id"`
ChannelID string `json:"channel_id"`