mitchwadair / tesjs

Streamline your Twitch EventSub JavaScript integration with TESjs

Home Page:https://www.tesjs.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[RFE] Add Version to `subscribe`

mitchwadair opened this issue · comments

Is your feature request related to a problem? Please describe.
Now that some events are being deprecated and receiving new versions, TESjs needs to allow for specification of the subscription version when subscribing to an event.

Describe the solution you'd like
Add a third argument to subscribe for the subscription version

Additional context
https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#channelfollow

This can be made non-breaking by having a default value of "1"