open fun newAttachment(url: String, type: AttachmentType? = null): Attachment
Creates a new Attachment.