diff --git a/README.md b/README.md index cb0bb50..83115bf 100644 --- a/README.md +++ b/README.md @@ -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", }, diff --git a/examples/sub_client/main.go b/examples/sub_client/main.go index af20b40..a8084d9 100644 --- a/examples/sub_client/main.go +++ b/examples/sub_client/main.go @@ -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", },