Skip to content

Commit 30a028a

Browse files
committed
Updated to match latest eventsub
1 parent 8a75be5 commit 30a028a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

internal/events/types/charity/charity_event.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven
4343
var stopped_at *string
4444

4545
randomID := util.RandomGUID()
46+
randomID2 := util.RandomGUID()
4647
charityName := "Example Charity"
4748
charityLogo := "https://abc.cloudfront.net/ppgf/1000/100.png"
4849
charityDescription := "Example Description"
4950
charityWebsite := "https://www.example.com"
5051

5152
if params.Trigger == "charity-donate" {
5253
campaign_id = &randomID
54+
id = &randomID2
5355
user_id = &params.FromUserID
5456
user_login_name = &params.FromUserName
5557

internal/events/types/shield_mode/shield_mode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,5 @@ func (e Event) GetEventSubAlias(t string) string {
125125
}
126126

127127
func (e Event) SubscriptionVersion() string {
128-
return "beta"
128+
return "1"
129129
}

0 commit comments

Comments
 (0)