DiscordLua
discorddiscord
v1.2.9
Install

SlashCommandSubcommandBuilder

Builder
On this page

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

builder Module 1.2.9 Source

Constructor

SlashCommandSubcommandBuilder.new()

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

No parameters.

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

Examples

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

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

Version: discord 1.2.9 · runtime 1.0.0

Search Ctrl K Navigate Open Esc