pokepurple/addons/twitcher/generated/twitch_get_cheermotes.gd
Mario Steele c11a4ebbc2 Initial Commit
Initial commit of Code Base.
2025-06-12 14:31:14 -05:00

63 lines
No EOL
1.8 KiB
GDScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@tool
extends TwitchData
# CLASS GOT AUTOGENERATED DON'T CHANGE MANUALLY. CHANGES CAN BE OVERWRITTEN EASILY.
class_name TwitchGetCheermotes
##
## #/components/schemas/GetCheermotesResponse
class Response extends TwitchData:
## The list of Cheermotes. The list is in ascending order by the `order` fields value.
@export var data: Array[TwitchCheermote]:
set(val):
data = val
track_data(&"data", val)
var response: BufferedHTTPClient.ResponseData
## Constructor with all required fields.
static func create(_data: Array[TwitchCheermote]) -> 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(TwitchCheermote.from_json(value))
return result
## All optional parameters for TwitchAPI.get_cheermotes
## #/components/schemas/GetCheermotesOpt
class Opt extends TwitchData:
## The ID of the broadcaster whose custom Cheermotes you want to get. Specify the broadcasters ID if you want to include the broadcasters Cheermotes in the response (not all broadcasters upload Cheermotes). If not specified, the response contains only global Cheermotes.
##
## If the broadcaster uploaded Cheermotes, the `type` field in the response is set to **channel\_custom**.
@export var broadcaster_id: String:
set(val):
broadcaster_id = val
track_data(&"broadcaster_id", val)
## Constructor with all required fields.
static func create() -> Opt:
var opt: Opt = Opt.new()
return opt
static func from_json(d: Dictionary) -> Opt:
var result: Opt = Opt.new()
if d.get("broadcaster_id", null) != null:
result.broadcaster_id = d["broadcaster_id"]
return result