@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Class AccessList

    A set of opaque ids with change notifications. Used as bot.blacklist; the Whitelist subclass adds the enable/disable switch.

    Hierarchy (View Summary)

    Index
    • Add one id or many. Duplicates are ignored. Throws TypeError on an empty/non-string id.

      Parameters

      • ids: string | readonly string[]

      Returns this

    • Remove one id or many. Unknown ids are ignored. Throws TypeError on an empty/non-string id.

      Parameters

      • ids: string | readonly string[]

      Returns this

    • Is id on the list? Exact, case-sensitive match. Never throws.

      Parameters

      • id: string

      Returns boolean

    • The ids on the list, in insertion order (a copy).

      Returns string[]

    • Subscribe to effective mutations (no-op calls do not notify). Returns an unsubscriber. A throwing listener never breaks the mutation that triggered it.

      Parameters

      Returns () => void