Application Commands
Slash Commands
Creating slash commands with Lilybird’s JSX components is a trivial task. You can create one with the parent element ApplicationCommand
and add options by importing the respective <type>Option
.
import { ApplicationCommand, StringOption, UserOption } from "@lilybird/jsx";
const command = ( <ApplicationCommand name="docs" description="Search at docs"> <StringOption name="query" description="Select query" required /> <UserOption name="target" description="User to mention" /> </ApplicationCommand>);