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

66 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 TwitchAddBlockedTerm
##
## #/components/schemas/AddBlockedTermBody
class Body extends TwitchData:
## The word or phrase to block from being used in the broadcasters chat room. The term must contain a minimum of 2 characters and may contain up to a maximum of 500 characters.
##
## Terms may include a wildcard character (\*). The wildcard character must appear at the beginning or end of a word or set of characters. For example, \*foo or foo\*.
##
## If the blocked term already exists, the response contains the existing blocked term.
@export var text: String:
set(val):
text = val
track_data(&"text", val)
var response: BufferedHTTPClient.ResponseData
## Constructor with all required fields.
static func create(_text: String) -> Body:
var body: Body = Body.new()
body.text = _text
return body
static func from_json(d: Dictionary) -> Body:
var result: Body = Body.new()
if d.get("text", null) != null:
result.text = d["text"]
return result
##
## #/components/schemas/AddBlockedTermResponse
class Response extends TwitchData:
## A list that contains the single blocked term that the broadcaster added.
@export var data: Array[TwitchBlockedTerm]:
set(val):
data = val
track_data(&"data", val)
var response: BufferedHTTPClient.ResponseData
## Constructor with all required fields.
static func create(_data: Array[TwitchBlockedTerm]) -> 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(TwitchBlockedTerm.from_json(value))
return result