Skip to main content

setName


General

Sets the attachment's name.


Usage

Attachment:setName(<string> name)
Returns: <Attachment> attachment


Example

Attachment.new():setFile('https://0q0.eu/img/okwoteam.png'):setName('Hello_guys.html')