Skip to content

Attachment

Implementation of discords Attachment object as a Luau builder.

https://discord.com/developers/docs/resources/message#attachment-object

Attachment.attachmentId  :: string?

The ID of the attachment

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
Attachment . new ( resource )  -> Attachment

Responsible for creating a new Attachment.

Parameters

resource: {
{ attachmentId: string, } }

Returns

Attachment