gluon

    Class GuildInviteManager

    Manages all invites within a guild.

    Hierarchy (View Summary, Expand)

    Implements

    • GuildInviteManager
    Index

    Constructors

    Properties

    identifier: StructureIdentifiers = ...
    rules: GluonCacheRuleSetStructure<any> = {}

    Accessors

    • get size(): number

      Returns the size of the cache.

      Returns number

    Methods

    • Fetches a value from the cache or from the rules cache.

      Parameters

      • key: string

        The key to fetch.

      Returns Promise<null | Invite>

      The fetched value.

    • Checks if a key exists in the cache.

      Parameters

      • key: string

        The key to check.

      Returns boolean

      Whether the key exists or not.

    • Parameters

      • callbackfn: (value: [string, Invite], index: number, array: [string, Invite][]) => unknown

      Returns Invite[]

    • Adds an invite to the cache.

      Parameters

      • code: string

        The code of the invite to cache.

      • invite: Invite

        The invite to cache.

      Returns void

    • Parameters

      • client: Client
      • guildId: string
      • code: string

      Returns null | Invite

    MMNEPVFCICPMFPCPTTAAATR