Skip to content

Commit

Permalink
Merge pull request #233 from autonomouskoi/eventsub-chat-frag#232
Browse files Browse the repository at this point in the history
Fix incorrect EventSubChannelChatMessageEvent parsing
  • Loading branch information
nicklaw5 authored Dec 8, 2024
2 parents 79b5ac7 + c61f60d commit 47c6ba6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 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 Expand Up @@ -508,7 +508,7 @@ type EventSubChannelChatNotificationBitsBadgeTier struct {

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

// Data for a channel poll begin event
Expand Down

0 comments on commit 47c6ba6

Please sign in to comment.