@tryforge/forgescript
    Preparing search index...

    Interface IBaseCommand<T>

    interface IBaseCommand<T> {
        aliases?: string[];
        allowBots?: boolean;
        allowedInteractionTypes?: CommandInteractionTypes[];
        code: string;
        disableConsoleErrors?: boolean;
        guildOnly?: boolean;
        name?: string;
        nameCaseInsensitive?: boolean;
        prefixMode?: PrefixMode;
        type: T;
        unprefixed?: boolean;
        [x: string | number | symbol]: unknown;
    }

    Type Parameters

    • T

    Indexable

    • [x: string | number | symbol]: unknown
    Index
    aliases?: string[]

    The aliases for this command.

    allowBots?: boolean

    Allows the bot to execute this event triggered by other bots (and itself).

    false
    
    allowedInteractionTypes?: CommandInteractionTypes[]

    The interaction types to restrict execution of the interactionCreate event to.

    code: string

    The code to run when the event fired.

    disableConsoleErrors?: boolean

    Whether to disable all possible console errors for this command.

    false
    
    guildOnly?: boolean

    Whether this command can only be executed on guilds.

    false
    
    name?: string

    The name for this command. Used as custom ID filter for interactionCreate events.

    nameCaseInsensitive?: boolean

    Whether the command name and aliases should be case-insensitive, this only affects letters.

    true
    
    prefixMode?: PrefixMode

    The prefix mode to use for this command.

    PrefixMode.Required
    
    type: T

    The event type the bot will listen to.

    unprefixed?: boolean

    Whether the command can be executed without a prefix.

    This property is considered legacy, prefixMode is preferred instead.

    false