disvite
    Preparing search index...

    Class MemoryStorageAdapter

    Ultra-fast, zero-dependency in-memory storage adapter. Ideal for development, testing, lightweight bots, or bots that manage their own persistent storage via event listeners.

    Implements

    Index

    Constructors

    Methods

    • Add or subtract bonus invites for a user in a guild.

      Parameters

      • guildId: string
      • userId: string
      • amount: number

      Returns Promise<number>

    • Check whether a user recently left this guild within the specified threshold milliseconds.

      Parameters

      • guildId: string
      • inviteeId: string
      • thresholdMs: number

      Returns Promise<boolean>