pokepurple/addons/twitcher/generated/twitch_get_channel_editors.gd

35 lines
950 B
GDScript3
Raw Permalink Normal View History

@tool
extends TwitchData
# CLASS GOT AUTOGENERATED DON'T CHANGE MANUALLY. CHANGES CAN BE OVERWRITTEN EASILY.
class_name TwitchGetChannelEditors
##
## #/components/schemas/GetChannelEditorsResponse
class Response extends TwitchData:
## A list of users that are editors for the specified broadcaster. The list is empty if the broadcaster doesnt have editors.
@export var data: Array[TwitchChannelEditor]:
set(val):
data = val
track_data(&"data", val)
var response: BufferedHTTPClient.ResponseData
## Constructor with all required fields.
static func create(_data: Array[TwitchChannelEditor]) -> Response:
var response: Response = Response.new()
response.data = _data
return response
static func from_json(d: Dictionary) -> Response:
var result: Response = Response.new()
if d.get("data", null) != null:
for value in d["data"]:
result.data.append(TwitchChannelEditor.from_json(value))
return result