@tanzanite/discord-akairo
    Preparing search index...

    Type Alias AkairoHandlerOptions<Module, Handler, Events>

    Options for module loading and handling.

    type AkairoHandlerOptions<
        Module extends AkairoModule<Handler, Module, Events>,
        Handler extends AkairoHandler<Module, Handler, Events>,
        Events extends AkairoHandlerEvents<Module, Handler, Events>,
    > = {
        automateCategories?: boolean;
        classToHandle?: Class<Module>;
        directory: string;
        extensions?: Extension[] | Set<Extension>;
        loadFilter?: LoadPredicate;
    }

    Type Parameters

    Index

    Properties

    automateCategories?: boolean

    Whether or not to set each module's category to its parent directory name.

    false
    
    classToHandle?: Class<Module>

    Only classes that extends this class can be handled.

    AkairoModule
    
    directory: string

    Directory to modules.

    extensions?: Extension[] | Set<Extension>

    File extensions to load.

    [".js", ".json", ".ts"]
    
    loadFilter?: LoadPredicate

    Filter for files to be loaded. Can be set individually for each handler by overriding the loadAll method.

    () => true