From e4b9c59107df6c37d161f130085e95f923f912e1 Mon Sep 17 00:00:00 2001 From: Daniel Sage Date: Thu, 14 Mar 2024 21:38:55 -0400 Subject: [PATCH] Update examples with required version --- README.md | 3 ++- examples/sub_client/main.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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", },