Browse Source

Allow marshaling of data field in interactions

Carson Hoffman 3 năm trước cách đây
mục cha
commit
7c455ffc70
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      interactions.go

+ 1 - 1
interactions.go

@@ -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"`