Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Applications

Applications Collection

Hierarchy

Index

Constructors

constructor

Properties

Optional _lastUsed

_lastUsed: Map<string, number>

cache

cache: Map<string, Application>

client

client: ShardClient

enabled

enabled: boolean

Optional expire

expire: undefined | number

Optional interval

interval: Timers.Interval

intervalTime

intervalTime: number

lastRefresh

lastRefresh: number = 0

lastUsed

lastUsed: Map<string, number>

length

length: number

limit

limit: number

refreshTime

refreshTime: number = 4 * (60 * 60) * 1000

shouldStartInterval

shouldStartInterval: boolean

size

size: number

Accessors

[Symbol.toStringTag]

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

shouldRefresh

  • get shouldRefresh(): boolean
  • Returns boolean

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<[string, Application]>
  • Returns IterableIterator<[string, Application]>

clear

  • clear(): void
  • Returns void

clone

  • Returns BaseCollection<string, Application>

delete

  • delete(key: string): boolean
  • Parameters

    • key: string

    Returns boolean

entries

  • Returns IterableIterator<[string, Application]>

every

  • every(func: function): boolean
  • Parameters

    Returns boolean

fill

  • fill(applications?: Array<any>): Promise<void>
  • Parameters

    • Optional applications: Array<any>

    Returns Promise<void>

filter

  • Parameters

    Returns Array<Application>

find

  • Parameters

    Returns Application | undefined

first

  • Returns Application | undefined

forEach

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

    Returns void

get

  • Parameters

    • key: string

    Returns Application | undefined

has

  • has(key: string): boolean
  • Parameters

    • key: string

    Returns boolean

insert

  • Parameters

    Returns void

join

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

    • Optional separator: undefined | string

    Returns string

keys

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

map

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

    Returns Array<any>

reduce

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

    • func: function
    • Optional initialValue: any

    Returns any

set

  • Parameters

    Returns this

setEnabled

  • setEnabled(value: boolean): void

setExpire

  • setExpire(value: number): this
  • Parameters

    • value: number

    Returns this

setIntervalTimeout

  • setIntervalTimeout(value: number): this
  • Parameters

    • value: number

    Returns this

some

  • some(func: function): boolean
  • Parameters

    Returns boolean

sort

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

    • Optional func: undefined | function

    Returns Array<Application>

startInterval

  • startInterval(): void
  • Returns void

stopInterval

  • stopInterval(): void
  • Returns void

toArray

  • Returns Array<Application>

toJSON

  • Returns Array<Application>

toString

  • toString(): string
  • Returns string

values

  • Returns IterableIterator<Application>

Generated using TypeDoc