diff --git a/addons/no_twitch/twitch_connection.gd b/addons/no_twitch/twitch_connection.gd index ae8c297..a5beafd 100644 --- a/addons/no_twitch/twitch_connection.gd +++ b/addons/no_twitch/twitch_connection.gd @@ -51,7 +51,7 @@ func cache_user_data(): var resp = request_user_info() resp.response_received.connect(func(data): - user_info = data + user_info = data.data print("User Info Cached") ) @@ -304,12 +304,16 @@ class HTTPResponse: var info = JSON.parse_string(body.get_string_from_utf8()) + info["result"] = result + info["code"] = response_code + info["headers"] = headers + if info.has("error"): - push_error("NoTwitch Twitch API Error: " + info.error + " " + info.message) + push_error("NoTwitch Twitch API Error: " + str(info)) return - info = info.data[0] + info["data"] = info.data[0] print("Response Received") inf_data = info