Important
Currently the documentation here pertains to the canary tag of Dressed (dressed@1.10.0-canary.5.x
), keep in mind that some items (especially talked about in the deployment guides) are not available / work slightly differently in the @latest
version.
Command Config
Each command can optionally export a config
object.
import { type CommandConfig, CommandOption } from "dressed";
export const config: CommandConfig = {
description: "Send a random adorable animal photo",
options: [
CommandOption({
name: "animal",
description: "The type of animal",
type: "String",
required: true,
}),
],
};
Config type
The config object supports all of the Discord application command option type.