Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseClientGuildReferenceCache<K, V>

Type parameters

  • K

  • V

Hierarchy

Index

Constructors

constructor

Properties

client

client: ShardClient

enabled

enabled: boolean

key

key: string = ""

length

length: number

options

options: BaseCollectionOptions

Accessors

[Symbol.toStringTag]

  • get [Symbol.toStringTag](): string
  • Returns string

guilds

  • Returns Guilds

size

  • get size(): number
  • Returns number

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<[K, V]>
  • Returns IterableIterator<[K, V]>

clear

  • clear(): void
  • Returns void

delete

  • delete(guildId: K | null | undefined, key: K): boolean
  • Parameters

    • guildId: K | null | undefined
    • key: K

    Returns boolean

entries

  • entries(): IterableIterator<[K, V]>
  • Returns IterableIterator<[K, V]>

every

  • every(func: function): boolean
  • Parameters

    • func: function
        • (v: V, k: K): boolean
        • Parameters

          • v: V
          • k: K

          Returns boolean

    Returns boolean

filter

  • filter(func: function): Array<V>
  • Parameters

    • func: function
        • (v: V, k: K): boolean
        • Parameters

          • v: V
          • k: K

          Returns boolean

    Returns Array<V>

find

  • find(func: function): V | undefined
  • Parameters

    • func: function
        • (v: V, k: K): boolean
        • Parameters

          • v: V
          • k: K

          Returns boolean

    Returns V | undefined

first

  • first(): V | undefined
  • Returns V | undefined

forEach

  • forEach(func: function, thisArg?: any): void
  • Parameters

    • func: function
        • (v: V, k: K, map: Map<K, V>): void
        • Parameters

          • v: V
          • k: K
          • map: Map<K, V>

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get(guildId: K | null | undefined, key: K): V | undefined
  • Parameters

    • guildId: K | null | undefined
    • key: K

    Returns V | undefined

has

  • has(guildId: K | null | undefined, key: K): boolean
  • Parameters

    • guildId: K | null | undefined
    • key: K

    Returns boolean

join

  • join(separator?: undefined | string): string
  • Parameters

    • Optional separator: undefined | string

    Returns string

keys

  • keys(): IterableIterator<K>
  • Returns IterableIterator<K>

map

  • map(func: function): Array<any>
  • Parameters

    • func: function
        • (v: V, k: K): any
        • Parameters

          • v: V
          • k: K

          Returns any

    Returns Array<any>

reduce

  • reduce(func: function, initialValue?: any): any
  • Parameters

    • func: function
        • (intial: any, v: V): any
        • Parameters

          • intial: any
          • v: V

          Returns any

    • Optional initialValue: any

    Returns any

set

  • set(guildId: K, key: K, value: V): this
  • Parameters

    • guildId: K
    • key: K
    • value: V

    Returns this

setEnabled

  • setEnabled(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

some

  • some(func: function): boolean
  • Parameters

    • func: function
        • (v: V, k: K): boolean
        • Parameters

          • v: V
          • k: K

          Returns boolean

    Returns boolean

sort

  • sort(func?: undefined | function): Array<V>
  • Parameters

    • Optional func: undefined | function

    Returns Array<V>

toArray

  • toArray(): Array<V>
  • Returns Array<V>

toJSON

  • toJSON(): Array<V>
  • Returns Array<V>

toString

  • toString(): string
  • Returns string

values

  • values(): IterableIterator<V>
  • Returns IterableIterator<V>

Generated using TypeDoc