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

47 lines
1.4 KiB
GDScript
Raw 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.
##
## #/components/schemas/UserModerator
class_name TwitchUserModerator
## The ID of the user that has permission to moderate the broadcasters channel.
@export var user_id: String:
set(val):
user_id = val
track_data(&"user_id", val)
## The users login name.
@export var user_login: String:
set(val):
user_login = val
track_data(&"user_login", val)
## The users display name.
@export var user_name: String:
set(val):
user_name = val
track_data(&"user_name", val)
var response: BufferedHTTPClient.ResponseData
## Constructor with all required fields.
static func create(_user_id: String, _user_login: String, _user_name: String) -> TwitchUserModerator:
var twitch_user_moderator: TwitchUserModerator = TwitchUserModerator.new()
twitch_user_moderator.user_id = _user_id
twitch_user_moderator.user_login = _user_login
twitch_user_moderator.user_name = _user_name
return twitch_user_moderator
static func from_json(d: Dictionary) -> TwitchUserModerator:
var result: TwitchUserModerator = TwitchUserModerator.new()
if d.get("user_id", null) != null:
result.user_id = d["user_id"]
if d.get("user_login", null) != null:
result.user_login = d["user_login"]
if d.get("user_name", null) != null:
result.user_name = d["user_name"]
return result