Field
Implementation of discords Field object as a Luau builder.
https://discord.com/developers/docs/resources/message#embed-object-embed-field-structure
Summary
Properties
Section titled “Properties”The name of the field that is displayed.
The value of the field that is displayed.
inline
Section titled “inline”Whether or not this field should display inline.
Methods
Section titled “Methods”setName
Section titled “setName”Field : setName ( name ) -> Field
Set the name of the field
Parameters
| name: string |
Returns
| Field |
setValue
Section titled “setValue”Field : setValue ( value ) -> Field
Set the value of the field
Parameters
| value: string |
Returns
| Field |
setIsInline
Section titled “setIsInline”Field : setIsInline ( isInline ) -> Field
Set if the field is inline.
Parameters
| isInline: boolean |
Returns
| Field |
Field : build ( ) -> JSON
Responsible for building the Field JSON that can be parsed by the Discord API.
Returns
| JSON |
Functions
Section titled “Functions”Field . new ( resource ) -> Field
Responsible for creating a new Field.