Closed tonebacas closed 1 year ago
Twitch changed the API regarding the channel.follow event. I will put the event subscription in the hands of the user instead of handling all event versions by GIFT. There will only be a single 'event' signal with the type of event and data instead of a signal for each event.
Events will have to be subscribed to by specifying the event name, API version and conditions and emit all related data, which will not require me to update GIFT on every API change in the future.
Will add a check for failure of the subscription as well, I simply forgot <3
Thanks!
In file
addons/gift/gift_node.gd
, on line 454 (last line of the following snippet, functionconnect_to_eventsub
)I get
Invalid get index 'data' (on base: 'Dictionary')
. The response was to the request was{ "error": "Forbidden", "status": 403, "message": "subscription missing proper authorization" }
, which does not have thedata
key, which causes the error.Also, this code assumes the EventSub subscription process always succeeds, and does not handle any other outcome, which is problematic.