@tool
extends TwitchData

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

class_name TwitchDeleteChatMessages
	


## All optional parameters for TwitchAPI.delete_chat_messages
## #/components/schemas/DeleteChatMessagesOpt
class Opt extends TwitchData:

	## The ID of the message to remove. The `id` tag in the [PRIVMSG](https://dev.twitch.tv/docs/irc/tags#privmsg-tags) tag contains the message’s ID. Restrictions:  
	##   
	## * The message must have been created within the last 6 hours.
	## * The message must not belong to the broadcaster.
	## * The message must not belong to another moderator.
	##   
	## If not specified, the request removes all messages in the broadcaster’s chat room.
	@export var message_id: String:
		set(val): 
			message_id = val
			track_data(&"message_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("message_id", null) != null:
			result.message_id = d["message_id"]
		return result
	