disvite
    Preparing search index...

    Interface InviteTrackerOptions

    Configuration options for DisVite InviteTracker.

    interface InviteTrackerOptions {
        bonusModelName?: string;
        cacheStore?: CacheStore;
        concurrency?: number;
        emitOnClient?: boolean;
        fakeThresholdMs?: number;
        modelName?: string;
        mongooseConnection?: any;
        mongoURI?: string;
        rejoinThresholdMs?: number;
        storage?: StorageAdapter | "memory" | "mongoose";
        trackBots?: boolean;
        verbose?: boolean;
    }
    Index

    Properties

    bonusModelName?: string

    Mongoose collection model name for bonus invites (default: "bonusInviteSchema").

    cacheStore?: CacheStore

    Custom cache store implementation. Defaults to InMemoryCacheStore.

    concurrency?: number

    Concurrency batch limit when fetching invites across all guilds at startup. Default: 3.

    emitOnClient?: boolean

    Whether to also mirror invite events onto the discord.js Client instance for backwards compatibility. Default: true.

    fakeThresholdMs?: number

    Maximum account age in milliseconds below which an account is flagged as fake. Default: 7 days (604,800,000 ms).

    modelName?: string

    Mongoose collection model name for invite join logs (default: "inviteSchema").

    mongooseConnection?: any

    Existing Mongoose connection to reuse rather than establishing a new global connection.

    mongoURI?: string

    Legacy MongoDB connection URI (backwards compatibility).

    rejoinThresholdMs?: number

    Maximum duration in milliseconds between a member's previous leave and rejoin to flag as a fake re-join loop. Default: 7 days (604,800,000 ms).

    storage?: StorageAdapter | "memory" | "mongoose"

    Selected storage engine: 'memory', 'mongoose', or a custom StorageAdapter instance. Default: 'memory' if no mongoURI provided; 'mongoose' if mongoURI is supplied.

    trackBots?: boolean

    Whether to track bot accounts joining the server (emits with JoinType.Bot). Default: true.

    verbose?: boolean

    If true, emits verbose debug events. (No direct console logging).