Patched Twitch EventSub Event Data Caching

Wasn't caching the Event Data early enough to be accessed.  So now it does.
This commit is contained in:
Eroax 2024-02-12 00:37:18 -07:00
parent d469680850
commit 6540e30552

View file

@ -35,11 +35,11 @@ func _event_received(event_name: StringName, event_data: Dictionary = {}):
return return
# Sends the data along as well as the fact that the event happened. While also caching the event data for later access
cached_event_data = event_data.payload
# Sends to indicate that the specified event has happened. # Sends to indicate that the specified event has happened.
send(0, null) send(0, null)
# Sends the data along as well as the fact that the event happened. While also caching the event data for later access
cached_event_data = event_data
send(1, event_data) send(1, event_data)