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

41 lines
No EOL
1.1 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 TwitchStartARaid
## All optional parameters for TwitchAPI.start_a_raid
## #/components/schemas/StartARaidOpt
class Opt extends TwitchData:
## The ID of the broadcaster thats sending the raiding party. This ID must match the user ID in the user access token.
@export var from_broadcaster_id: String:
set(val):
from_broadcaster_id = val
track_data(&"from_broadcaster_id", val)
## The ID of the broadcaster to raid.
@export var to_broadcaster_id: String:
set(val):
to_broadcaster_id = val
track_data(&"to_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("from_broadcaster_id", null) != null:
result.from_broadcaster_id = d["from_broadcaster_id"]
if d.get("to_broadcaster_id", null) != null:
result.to_broadcaster_id = d["to_broadcaster_id"]
return result