SlashCommandSubcommandGroupBuilder
BuilderOn this page
SlashCommandSubcommandGroupBuilder is a fluent payload builder. Chain setters, then pass the builder to send, reply, or command registration.
Constructor
SlashCommandSubcommandGroupBuilder.new() The class table is callable, so SlashCommandSubcommandGroupBuilder() is the same as .new.
No parameters.
local discord = require("discord")
local object = discord.SlashCommandSubcommandGroupBuilder()Methods
SlashCommandSubcommandGroupBuilder:addSubcommand()
#Add Subcommand to this SlashCommandSubcommandGroupBuilder.
Signature
SlashCommandSubcommandGroupBuilder:addSubcommand(input) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
input |
any |
required | Passed through to the implementation as written. |
Returns
SlashCommandSubcommandGroupBuilder — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a SlashCommandSubcommandGroupBuilder
object:addSubcommand(input)Examples
local discord = require("discord")
local object = discord.SlashCommandSubcommandGroupBuilder({})Related APIs
ActionRowBuilder · AttachmentBuilder · BaseSelectMenuBuilder · ButtonBuilder · ChannelSelectMenuBuilder · CheckboxBuilder · ComponentBuilder · ContainerBuilder
Version: discord 1.2.9 · runtime 1.0.0