Skip to content

Commit

Permalink
Updated to match latest eventsub
Browse files Browse the repository at this point in the history
  • Loading branch information
Xemdo committed Jan 17, 2023
1 parent 8a75be5 commit 30a028a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions internal/events/types/charity/charity_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven
var stopped_at *string

randomID := util.RandomGUID()
randomID2 := util.RandomGUID()
charityName := "Example Charity"
charityLogo := "https://abc.cloudfront.net/ppgf/1000/100.png"
charityDescription := "Example Description"
charityWebsite := "https://www.example.com"

if params.Trigger == "charity-donate" {
campaign_id = &randomID
id = &randomID2
user_id = &params.FromUserID
user_login_name = &params.FromUserName

Expand Down
2 changes: 1 addition & 1 deletion internal/events/types/shield_mode/shield_mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,5 @@ func (e Event) GetEventSubAlias(t string) string {
}

func (e Event) SubscriptionVersion() string {
return "beta"
return "1"
}

0 comments on commit 30a028a

Please sign in to comment.