Sfoglia il codice sorgente

Allow marshaling of data field in interactions

Carson Hoffman 3 anni fa
parent
commit
7c455ffc70
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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"`