DiscordLua
discorddiscord
v1.2.9
Install

ChannelSelectMenuBuilder

Builder
On this page

ChannelSelectMenuBuilder is a fluent payload builder. Chain setters, then pass the builder to send, reply, or command registration.

builder Module 1.2.9 Source

Methods

ChannelSelectMenuBuilder:addChannelTypes()

#

Add ChannelTypes to this ChannelSelectMenuBuilder.

Signature

ChannelSelectMenuBuilder:addChannelTypes(...)

Parameters

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

ChannelSelectMenuBuilder — the same instance, for chaining.

Example

lua
local discord = require("discord")
-- object is a ChannelSelectMenuBuilder
object:addChannelTypes(...)

ChannelSelectMenuBuilder.from()

# static

Performs from on this ChannelSelectMenuBuilder. Call it from bot code when you need that operation on the current object.

Signature

ChannelSelectMenuBuilder.from(data)

Parameters

NameTypeRequiredBehavior
data any required Passed through to the implementation as written.

Returns

ChannelSelectMenuBuilder — the same instance, for chaining.

Example

lua
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

NameTypeRequiredBehavior
... any required Passed through to the implementation as written.

Returns

ChannelSelectMenuBuilder — the same instance, for chaining.

Example

lua
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.

ActionRowBuilder · AttachmentBuilder · BaseSelectMenuBuilder · ButtonBuilder · CheckboxBuilder · ComponentBuilder · ContainerBuilder · ContextMenuCommandBuilder

Version: discord 1.2.9 · runtime 1.0.0

Search Ctrl K Navigate Open Esc