You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could use the static object for reference in the Helix create subscription, instead of either an instance (see below code example) or manual typed subscription.
Helix.EventSub.CreateEventSubSubscriptionAsync( new StreamOnlineHandler().SubscriptionType, "1", conditions, EventSubTransportMethod.Websocket, _eventSubWebsocketClient.SessionId );
Or am I missing a dictionary table somewhere with all of the subscription types accessible by key/value?
(I can understand code logistical issues and trying to keep things as minimal footprint can override this suggestion).
The text was updated successfully, but these errors were encountered:
Recommendation to add or update INotificationHandler 'SubscriptionType' to static.
e.g.
TwitchLib.EventSub.Websockets/TwitchLib.EventSub.Websockets/Handler/Stream/StreamOnlineHandler.cs
Line 17 in 129f195
We could use the static object for reference in the Helix create subscription, instead of either an instance (see below code example) or manual typed subscription.
Helix.EventSub.CreateEventSubSubscriptionAsync( new StreamOnlineHandler().SubscriptionType, "1", conditions, EventSubTransportMethod.Websocket, _eventSubWebsocketClient.SessionId );
Or am I missing a dictionary table somewhere with all of the subscription types accessible by key/value?
(I can understand code logistical issues and trying to keep things as minimal footprint can override this suggestion).
The text was updated successfully, but these errors were encountered: