[eventsub] Switch to channel.update/2

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-07-21 23:55:03 +02:00
parent 0b8196b127
commit d74105bc00
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -114,6 +114,7 @@ func (t *twitchWatcher) getTopicRegistrations(userID string) []topicRegistration
return []topicRegistration{ return []topicRegistration{
{ {
Topic: twitch.EventSubEventTypeChannelUpdate, Topic: twitch.EventSubEventTypeChannelUpdate,
Version: twitch.EventSubTopicVersion2,
Condition: twitch.EventSubCondition{BroadcasterUserID: userID}, Condition: twitch.EventSubCondition{BroadcasterUserID: userID},
RequiredScopes: nil, RequiredScopes: nil,
Hook: t.handleEventSubChannelUpdate, Hook: t.handleEventSubChannelUpdate,