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

65 lines
No EOL
1.7 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 TwitchGetChatSettings
##
## #/components/schemas/GetChatSettingsResponse
class Response extends TwitchData:
## The list of chat settings. The list contains a single object with all the settings.
@export var data: Array[TwitchChatSettings]:
set(val):
data = val
track_data(&"data", val)
var response: BufferedHTTPClient.ResponseData
## Constructor with all required fields.
static func create(_data: Array[TwitchChatSettings]) -> 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(TwitchChatSettings.from_json(value))
return result
## All optional parameters for TwitchAPI.get_chat_settings
## #/components/schemas/GetChatSettingsOpt
class Opt extends TwitchData:
## The ID of the broadcaster or one of the broadcasters moderators.
##
## This field is required only if you want to include the `non_moderator_chat_delay` and `non_moderator_chat_delay_duration` settings in the response.
##
## If you specify this field, this ID must match the user ID in the user access token.
@export var moderator_id: String:
set(val):
moderator_id = val
track_data(&"moderator_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("moderator_id", null) != null:
result.moderator_id = d["moderator_id"]
return result