Skip to content

Commit

Permalink
Fix incorrect EventSubChannelChatMessageEvent parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmf committed Nov 24, 2024
1 parent 0151ccc commit 8d57fbb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eventsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ type EventSubChannelChatMessageEvent struct {

type EventSubChatMessage struct {
Text string `json:"text"`
Fragments []EventSubChatMessageFragment `json:"fragment"`
Fragments []EventSubChatMessageFragment `json:"fragments"`
}

type EventSubChatMessageReply struct {
Expand Down Expand Up @@ -354,10 +354,10 @@ type EventSubChatMessageCheermote struct {
}

type EventSubChatMessageEmote struct {
ID string `json:"id"`
EmoteSetID string `json:"emote_set_id"`
OwnerID string `json:"owner_id"`
Format string `json:"format"`
ID string `json:"id"`
EmoteSetID string `json:"emote_set_id"`
OwnerID string `json:"owner_id"`
Format []string `json:"format"`
}

type EventSubChatMessageMention struct {
Expand Down

0 comments on commit 8d57fbb

Please sign in to comment.