Skip to content

Field

Implementation of discords Field object as a Luau builder.

https://discord.com/developers/docs/resources/message#embed-object-embed-field-structure

Properties

The Field instance has no set properties!

Methods

The Field instance has no set methods!

Functions

setName

Field . setName (

     self: Field
     name: string
)  -> ()

Set the name of the field

setValue

Field . setValue (

     self: Field
     value: string
)  -> ()

Set the value of the field

setIsInline

Field . setIsInline (

     self: Field
     isInline: boolean
)  -> ()

Set if the field is inline.

build

Field . build (

     self: Field
)  -> ()

Responsible for building the Field JSON that can be parsed by the Discord API.

new

Field . new (

     resource: {
       name: string?,
       value: string?,
       inline: boolean?,
    }
)  -> ()

Responsible for creating a new Field.