39 lines
1.3 KiB
GDScript3
39 lines
1.3 KiB
GDScript3
|
|
@tool
|
||
|
|
extends TwitchData
|
||
|
|
|
||
|
|
# CLASS GOT AUTOGENERATED DON'T CHANGE MANUALLY. CHANGES CAN BE OVERWRITTEN EASILY.
|
||
|
|
|
||
|
|
##
|
||
|
|
## #/components/schemas/AutoModStatus
|
||
|
|
class_name TwitchAutoModStatus
|
||
|
|
|
||
|
|
## The caller-defined ID passed in the request.
|
||
|
|
@export var msg_id: String:
|
||
|
|
set(val):
|
||
|
|
msg_id = val
|
||
|
|
track_data(&"msg_id", val)
|
||
|
|
|
||
|
|
## A Boolean value that indicates whether Twitch would approve the message for chat or hold it for moderator review or block it from chat. Is **true** if Twitch would approve the message; otherwise, **false** if Twitch would hold the message for moderator review or block it from chat.
|
||
|
|
@export var is_permitted: bool:
|
||
|
|
set(val):
|
||
|
|
is_permitted = val
|
||
|
|
track_data(&"is_permitted", val)
|
||
|
|
var response: BufferedHTTPClient.ResponseData
|
||
|
|
|
||
|
|
|
||
|
|
## Constructor with all required fields.
|
||
|
|
static func create(_msg_id: String, _is_permitted: bool) -> TwitchAutoModStatus:
|
||
|
|
var twitch_auto_mod_status: TwitchAutoModStatus = TwitchAutoModStatus.new()
|
||
|
|
twitch_auto_mod_status.msg_id = _msg_id
|
||
|
|
twitch_auto_mod_status.is_permitted = _is_permitted
|
||
|
|
return twitch_auto_mod_status
|
||
|
|
|
||
|
|
|
||
|
|
static func from_json(d: Dictionary) -> TwitchAutoModStatus:
|
||
|
|
var result: TwitchAutoModStatus = TwitchAutoModStatus.new()
|
||
|
|
if d.get("msg_id", null) != null:
|
||
|
|
result.msg_id = d["msg_id"]
|
||
|
|
if d.get("is_permitted", null) != null:
|
||
|
|
result.is_permitted = d["is_permitted"]
|
||
|
|
return result
|