@japofc/baileys - v2.4.7
    Preparing search index...

    Interface RouterOptions

    interface RouterOptions {
        adminCacheTtlMs?: number;
        help?: boolean;
        ignoreMe?: boolean;
        onDenied?: (ctx: RouterContext, denial: RouterDenial) => void;
        onError?: (err: any, ctx: RouterContext) => void;
        onUnknownCommand?: (ctx: RouterContext) => any;
        owners?: string | string[];
        prefix?: string | string[];
    }
    Index
    adminCacheTtlMs?: number

    Group-admin cache TTL in ms. Default 60000.

    help?: boolean
    ignoreMe?: boolean
    onDenied?: (ctx: RouterContext, denial: RouterDenial) => void

    Called when a guard blocks a command.

    onError?: (err: any, ctx: RouterContext) => void
    onUnknownCommand?: (ctx: RouterContext) => any

    Called for prefixed-but-unknown commands (message counts as handled).

    owners?: string | string[]

    Owner jids for ownerOnly commands (device suffixes tolerated).

    prefix?: string | string[]