Skip to content

Commit

Permalink
Merge pull request #214 from jackmcguire1/fix/hype-train-end-event-sub
Browse files Browse the repository at this point in the history
fix: EventSub HypeTrain End Event fields
  • Loading branch information
nicklaw5 authored Feb 29, 2024
2 parents 24fb5e3 + 4910f77 commit 8235248
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eventsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,14 +676,15 @@ type EventSubHypeTrainProgressEvent struct {

// Data for a hype train end notification
type EventSubHypeTrainEndEvent struct {
ID string `json:"id"`
BroadcasterUserID string `json:"broadcaster_user_id"`
BroadcasterUserLogin string `json:"broadcaster_user_login"`
BroadcasterUserName string `json:"broadcaster_user_name"`
Level int `json:"level"`
Total int `json:"total"`
TopContributions []EventSubContribution `json:"top_contributions"`
StartedAt Time `json:"started_at"`
ExpiresAt Time `json:"expires_at"`
EndedAt Time `json:"ended_at"`
CooldownEndsAt Time `json:"cooldown_ends_at"`
}

Expand Down

0 comments on commit 8235248

Please sign in to comment.