class_name Chat extends VBoxContainer signal message_submitted(message: String) func add_message(message: String): %Messages.append_text("%s\n" % message)