41 lines
No EOL
1.1 KiB
GDScript
41 lines
No EOL
1.1 KiB
GDScript
@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 that’s 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
|
||
|