SelectMenuDefaultValue
Implementation of discords DefaultValue object as a Luau builder.
Summary
Properties
SelectMenuDefaultValue.id :: stringSelectMenuDefaultValue.type :: apiTypes.SelectDefaultValueTypeProperties
Section titled “Properties”The id of the default value.
SelectMenuDefaultValue.type :: SelectDefaultValueType
The type of the default value.
Methods
Section titled “Methods”SelectMenuDefaultValue : setId ( id ) -> DefaultValue
Sets the id of the default value.
Parameters
| id: string |
Returns
| DefaultValue |
setType
Section titled “setType”SelectMenuDefaultValue : setType ( type ) -> DefaultValue
Sets the type of the default value.
Parameters
| type: SelectDefaultValueType |
Returns
| DefaultValue |
SelectMenuDefaultValue : build ( ) -> JSON
Responsible for building the DefaultValue JSON that can be parsed by the Discord API.
Returns
| JSON |
Functions
Section titled “Functions”SelectMenuDefaultValue . new ( resource ) -> DefaultValue
Responsible for creating a new DefaultValue.
local defaultValue = DefaultValue.new({ id = "123", type = "user"})Parameters
| resource: { id: string, type: apiTypes.SelectDefaultValueType, } |
Returns
| DefaultValue |