The options for a SubCommand.

interface SubCommandOptions {
    aliases?: string[];
    arguments?: Record<string, Argument<any>>;
    channels?: string[];
    description?: string;
    tags?: ("nsfw" | Tag | "channelOnly" | "dmOnly" | "guildOnly" | "guildOwnerOnly" | "ownerOnly" | "threadOnly" | "check")[];
    usage?: string;
}

Properties

aliases?: string[]

The aliases of the SubCommand.

arguments?: Record<string, Argument<any>>
channels?: string[]

The channels where the SubCommand can be executed.

description?: string

The description of the SubCommand.

Remarks

If a SubCommand has no description, it will not be shown in the default Help Command.

tags?: ("nsfw" | Tag | "channelOnly" | "dmOnly" | "guildOnly" | "guildOwnerOnly" | "ownerOnly" | "threadOnly" | "check")[]

The tags of the SubCommand.

usage?: string

Examples of usages for the SubCommand.

Generated using TypeDoc