@tool
extends TwitchData

# CLASS GOT AUTOGENERATED DON'T CHANGE MANUALLY. CHANGES CAN BE OVERWRITTEN EASILY.

class_name TwitchSendExtensionChatMessage
	


## 
## #/components/schemas/SendExtensionChatMessageBody
class Body extends TwitchData:

	## The message. The message may contain a maximum of 280 characters.
	@export var text: String:
		set(val): 
			text = val
			track_data(&"text", val)
	
	## The ID of the extension that’s sending the chat message.
	@export var extension_id: String:
		set(val): 
			extension_id = val
			track_data(&"extension_id", val)
	
	## The extension’s version number.
	@export var extension_version: String:
		set(val): 
			extension_version = val
			track_data(&"extension_version", val)
	var response: BufferedHTTPClient.ResponseData
	
	
	## Constructor with all required fields.
	static func create(_text: String, _extension_id: String, _extension_version: String) -> Body:
		var body: Body = Body.new()
		body.text = _text
		body.extension_id = _extension_id
		body.extension_version = _extension_version
		return body
	
	
	static func from_json(d: Dictionary) -> Body:
		var result: Body = Body.new()
		if d.get("text", null) != null:
			result.text = d["text"]
		if d.get("extension_id", null) != null:
			result.extension_id = d["extension_id"]
		if d.get("extension_version", null) != null:
			result.extension_version = d["extension_version"]
		return result
	