Attachment
Implementation of discords Attachment object as a Luau builder.
https://discord.com/developers/docs/resources/message#attachment-object
Summary
Properties
Attachment.attachmentId :: string?Properties
Section titled “Properties”attachmentId
Section titled “attachmentId”The ID of the attachment
Methods
Section titled “Methods”Attachment : setId ( attachmentId ) -> Attachment
The ID of the attachment to use.
Parameters
| attachmentId: string |
Returns
| Attachment |
Attachment : build ( ) -> JSON
Responsible for building the Attachment JSON that can be parsed by the Discord API.
Returns
| JSON |
Functions
Section titled “Functions”Attachment . new ( resource ) -> Attachment
Responsible for creating a new Attachment.
Parameters
| resource: { { attachmentId: string, } } |
Returns
| Attachment |