소스 검색

Allow marshaling of data field in interactions

Carson Hoffman 3 년 전
부모
커밋
7c455ffc70
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"`