ChannelSelectMenuBuilder
BuilderOn this page
ChannelSelectMenuBuilder is a fluent payload builder. Chain setters, then pass the builder to send, reply, or command registration.
Methods
ChannelSelectMenuBuilder:addChannelTypes()
#Add ChannelTypes to this ChannelSelectMenuBuilder.
Signature
ChannelSelectMenuBuilder:addChannelTypes(...) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
ChannelSelectMenuBuilder — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a ChannelSelectMenuBuilder
object:addChannelTypes(...)Performs from on this ChannelSelectMenuBuilder. Call it from bot code when you need that operation on the current object.
Signature
ChannelSelectMenuBuilder.from(data) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
data |
any |
required | Passed through to the implementation as written. |
Returns
ChannelSelectMenuBuilder — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a ChannelSelectMenuBuilder
ChannelSelectMenuBuilder.from(data)ChannelSelectMenuBuilder:setChannelTypes()
#Set the ChannelTypes field. Builders return this ChannelSelectMenuBuilder so setters can be chained.
Signature
ChannelSelectMenuBuilder:setChannelTypes(...) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
... |
any |
required | Passed through to the implementation as written. |
Returns
ChannelSelectMenuBuilder — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a ChannelSelectMenuBuilder
object:setChannelTypes(...)Examples
Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.
Related APIs
ActionRowBuilder · AttachmentBuilder · BaseSelectMenuBuilder · ButtonBuilder · CheckboxBuilder · ComponentBuilder · ContainerBuilder · ContextMenuCommandBuilder
Version: discord 1.2.9 · runtime 1.0.0