DiscordLua
discorddiscord
v1.2.9
Install

SlashCommandSubcommandGroupBuilder

Builder
On this page

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

builder Module 1.2.9 Source

Constructor

SlashCommandSubcommandGroupBuilder.new()

The class table is callable, so SlashCommandSubcommandGroupBuilder() is the same as .new.

No parameters.

lua
local discord = require("discord")
local object = discord.SlashCommandSubcommandGroupBuilder()

Methods

SlashCommandSubcommandGroupBuilder:addSubcommand()

#

Add Subcommand to this SlashCommandSubcommandGroupBuilder.

Signature

SlashCommandSubcommandGroupBuilder:addSubcommand(input)

Parameters

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

Returns

SlashCommandSubcommandGroupBuilder — the same instance, for chaining.

Example

lua
local discord = require("discord")
-- object is a SlashCommandSubcommandGroupBuilder
object:addSubcommand(input)

Examples

lua
local discord = require("discord")
local object = discord.SlashCommandSubcommandGroupBuilder({})

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

Version: discord 1.2.9 · runtime 1.0.0

Search Ctrl K Navigate Open Esc