Skip to content

Commit

Permalink
Update examples with required version
Browse files Browse the repository at this point in the history
  • Loading branch information
dnsge committed Mar 15, 2024
1 parent 29f686d commit e4b9c59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ client := eventsub.NewSubClient(eventsub.NewStaticCredentials(clientID, appToken

// Subscribe to channel.update events for forsen
client.Subscribe(context.Background(), &eventsub.SubRequest{
Type: "channel.update",
Type: "channel.update",
Version: "2",
Condition: bindings.ConditionChannelUpdate{
BroadcasterUserID: "22484632",
},
Expand Down
3 changes: 2 additions & 1 deletion examples/sub_client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const (
func main() {
client := eventsub.NewSubClient(eventsub.NewStaticCredentials(clientID, appToken))
res, _ := client.Subscribe(context.Background(), &eventsub.SubRequest{
Type: "channel.update",
Type: "channel.update",
Version: "2",
Condition: bindings.ConditionChannelUpdate{
BroadcasterUserID: "22484632",
},
Expand Down

0 comments on commit e4b9c59

Please sign in to comment.