Interface MessageCommandOptions

The options for the MessageCommand

interface MessageCommandOptions {
    aliases?: string[];
    caseSensitive?: boolean;
    cooldownSeconds?: number;
    defaultMemberPermissions?: PermissionResolvable;
    dmPermission?: boolean;
    metadata?: Record<string, unknown>;
    middlewares?: MessageCommandMiddleware[];
    name: string;
    nsfw?: boolean;
    ownerOnly?: boolean;
    privateGuildOnly?: boolean;
}

Properties

aliases?: string[]

The name aliases

Default

[]

caseSensitive?: boolean

Whether or not the command name is case sensitive

Default

false

cooldownSeconds?: number

The cooldown in seconds

Default

null

defaultMemberPermissions?: PermissionResolvable

The default member permissions

Default

null

dmPermission?: boolean

Whether or not the command is enabled in DMs

Default

true

metadata?: Record<string, unknown>

The metadata

Default

{}

middlewares?: MessageCommandMiddleware[]

The middlewares

Default

[]

name: string

The name

nsfw?: boolean

Whether or not the command is only usable in NSFW channels

Default

false

ownerOnly?: boolean

Whether or not the command is only usable by the owners (ClientOptions.ownerIds)

Default

false

privateGuildOnly?: boolean

Whether or not the command is only usable in private guilds (ClientOptions.privateGuildIds)

Default

false

Generated using TypeDoc