DiscordLua
discorddiscord
v1.2.9
Install

SlashCommandBuilder

Builder
On this page

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

builder Module 1.2.9 Source

Constructor

SlashCommandBuilder.new()

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

No parameters.

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

Examples

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

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

Version: discord 1.2.9 · runtime 1.0.0

Search Ctrl K Navigate Open Esc