@discord-types/builders/message/components/selectMenu/selectMenu
API reference for @discord-types/builders/message/components/selectMenu/selectMenu
@discord-types/builders/message/components/selectMenu/selectMenu
Types
SelectMenu
Raw Type
type SelectMenu = SelectMenu.Prototype, & {
type: channelTypes.SelectMenuType?,
customId: string?,
options: {option.JSON},
channelTypes: {channelTypes.ChannelType},
placeholder: string?,
defaultValues: {defaultValue.JSON},
minValues: number?,
maxValues: number?,
disabled: boolean?
}
Intersection with variants:
Variant 2
Prop | Type | Description |
---|---|---|
type? | - | |
customId? | - | |
options | - | |
channelTypes | - | |
placeholder? | - | |
defaultValues | - | |
minValues? | - | |
maxValues? | - | |
disabled? | - |
JSON
Raw Type
type JSON = SelectMenu.Prototype.build(nil :: any),
Functions
SelectMenu.Prototype.setType
[[
]]
Function Signature
--[[
]]
function SelectMenu.Prototype.setType(self: SelectMenu, selectMenuType: channelTypes.SelectMenuType) -> SelectMenu end
Arguments
selectMenuType
Returns
ret1
SelectMenu.Prototype.setCustomId
[[
]]
Function Signature
--[[
]]
function SelectMenu.Prototype.setCustomId(self: SelectMenu, customId: string) -> SelectMenu end
Arguments
customId
Returns
ret1
SelectMenu.Prototype.setPlaceholder
[[
]]
Function Signature
--[[
]]
function SelectMenu.Prototype.setPlaceholder(self: SelectMenu, placeholder: string) -> SelectMenu end
Arguments
placeholder
Returns
ret1
SelectMenu.Prototype.setMinValues
[[
]]
Function Signature
--[[
]]
function SelectMenu.Prototype.setMinValues(self: SelectMenu, minValueCount: number) -> SelectMenu end
Arguments
minValueCount
Returns
ret1
SelectMenu.Prototype.setMaxValues
[[
]]
Function Signature
--[[
]]
function SelectMenu.Prototype.setMaxValues(self: SelectMenu, maxValueCount: number) -> SelectMenu end
Arguments
maxValueCount
Returns
ret1
SelectMenu.Prototype.setDisabled
[[
]]
Function Signature
--[[
]]
function SelectMenu.Prototype.setDisabled(self: SelectMenu, disabled: boolean) -> SelectMenu end
Arguments
disabled
Returns
ret1
SelectMenu.Prototype.addDefaultValue
[[
]]
Function Signature
--[[
]]
function SelectMenu.Prototype.addDefaultValue(self: SelectMenu, defaultValue: defaultValue.JSON) -> SelectMenu end
Arguments
defaultValue
Returns
ret1
SelectMenu.Prototype.addChannelType
[[
]]
Function Signature
--[[
]]
function SelectMenu.Prototype.addChannelType(self: SelectMenu, channelType: channelTypes.ChannelType) -> SelectMenu end
Arguments
channelType
Returns
ret1
SelectMenu.Prototype.addOption
[[
]]
Function Signature
--[[
]]
function SelectMenu.Prototype.addOption(self: SelectMenu, option: option.JSON) -> SelectMenu end
Arguments
option
Returns
ret1
SelectMenu.Prototype.build
[[ Responsible for building the SelectMenu JSON that can be parsed by the Discord API. ]]
Function Signature
--[[
Responsible for building the SelectMenu JSON that can be parsed by the Discord API.
]]
function SelectMenu.Prototype.build(self: SelectMenu) -> JSON end
Returns
ret1
SelectMenu.Interface.new
[[ Responsible for creating a new SelectMenu.
```lua
``` ]]
Function Signature
--[[
Responsible for creating a new SelectMenu.
\`\`\`lua
\`\`\`
]]
function SelectMenu.Interface.new(resource: {
type: channelTypes.SelectMenuType?,
customId: string?,
options: {option.JSON},
channelTypes: {channelTypes.ChannelType},
placeholder: string?,
defaultValues: {defaultValue.JSON},
minValues: number?,
maxValues: number?,
disabled: boolean?
}?) -> SelectMenu end
Arguments
resource
This field is optional and may not be specified
{type: channelTypes.SelectMenuType?, customId: string?, options: {option.JSON}, channelTypes: {channelTypes.ChannelType}, placeholder: string?, defaultValues: {defaultValue.JSON}, minValues: number?, maxValues: number?, disabled: boolean?}?
Returns
ret1
Last updated on