From 3426f17173d3683783135e7a9152da501535b53e Mon Sep 17 00:00:00 2001 From: Eroax Date: Mon, 22 Jan 2024 20:03:45 -0700 Subject: [PATCH] Updated NoTwitch's Twitch_Connection.HTTPResponse --- addons/no_twitch/twitch_connection.gd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/no_twitch/twitch_connection.gd b/addons/no_twitch/twitch_connection.gd index dc73a5a..6a5de96 100644 --- a/addons/no_twitch/twitch_connection.gd +++ b/addons/no_twitch/twitch_connection.gd @@ -279,6 +279,9 @@ class HTTPResponse: signal response_received + ## The infuriatingly needed data variable. Because you can't await AND get signal data. + var inf_data + func _init(http : HTTPRequest, storage : Array): storage.append(self) @@ -297,6 +300,7 @@ class HTTPResponse: info = info.data[0] print("Response Received") + inf_data = info response_received.emit(info) http.queue_free()