gluon
    Preparing search index...

    Class GuildMemberManager

    Manages all members belonging to this guild.

    Hierarchy (View Summary)

    Implements

    • GuildMemberManager
    Index

    Constructors

    Properties

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

    Accessors

    • get size(): number

      Returns the size of the cache.

      Returns number

    Methods

    • Fetches a member.

      Parameters

      • user_id: string

        The id of the member to fetch.

      Returns Promise<Member>

      The fetched member.

    • Fetches a value from the rules cache.

      Parameters

      • key: string

        The key to fetch.

      Returns Promise<null | Member>

      The fetched value.

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

      Parameters

      • key: string

        The key to fetch.

      Returns Promise<null | Member>

      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, Member], index: number, array: [string, Member][]) => unknown

      Returns Member[]

    • Searches for members via a search query.

      Parameters

      • query: string

        The search query.

      Returns Promise<Member[]>

      The members which match the search query.

    • Adds a member to the cache.

      Parameters

      • id: string

        The ID of the member

      • member: Member

        The member to cache.

      Returns void

    • Parameters

      • client: Client
      • guildId: string
      • userId: string

      Returns Promise<Member>

    • Parameters

      • client: Client
      • guildId: string
      • userId: string

      Returns null | Member

    • Searches for members via a search query.

      Parameters

      • client: Client

        The client instance.

      • guildId: string

        The id of the guild to search.

      • query: string

        The search query.

      Returns Promise<Member[]>

      The members which match the search query.