SlashCommandBuilder
BuilderOn this page
SlashCommandBuilder is a fluent payload builder. Chain setters, then pass the builder to send, reply, or command registration.
Constructor
SlashCommandBuilder.new() The class table is callable, so SlashCommandBuilder() is the same as .new.
No parameters.
local discord = require("discord")
local object = discord.SlashCommandBuilder()Examples
local discord = require("discord")
local object = discord.SlashCommandBuilder({})Related APIs
ActionRowBuilder · AttachmentBuilder · BaseSelectMenuBuilder · ButtonBuilder · ChannelSelectMenuBuilder · CheckboxBuilder · ComponentBuilder · ContainerBuilder
Version: discord 1.2.9 · runtime 1.0.0