Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Channels

Channels Collection

Hierarchy

Index

Constructors

constructor

Properties

Optional _lastUsed

_lastUsed: Map<string, number>

cache

cache: Map<string, Channel>

client

client: ShardClient

enabled

enabled: boolean

Optional expire

expire: undefined | number

Optional interval

interval: Timers.Interval

intervalTime

intervalTime: number

lastUsed

lastUsed: Map<string, number>

length

length: number

limit

limit: number

shouldStartInterval

shouldStartInterval: boolean

size

size: number

Accessors

[Symbol.toStringTag]

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

Methods

[Symbol.iterator]

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

clear

  • clear(): void
  • Returns void

clone

  • clone(): BaseCollection<string, Channel>
  • Returns BaseCollection<string, Channel>

delete

  • delete(key: string): boolean
  • Parameters

    • key: string

    Returns boolean

entries

  • entries(): IterableIterator<[string, Channel]>
  • Returns IterableIterator<[string, Channel]>

every

  • every(func: function): boolean
  • Parameters

    • func: function
        • Parameters

          Returns boolean

    Returns boolean

filter

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

    • func: function
        • Parameters

          Returns boolean

    Returns Array<Channel>

find

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

    • func: function
        • Parameters

          Returns boolean

    Returns Channel | undefined

first

  • Returns Channel | undefined

forEach

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

    • func: function
    • Optional thisArg: any

    Returns void

get

  • get(key: string): Channel | undefined
  • Parameters

    • key: string

    Returns Channel | 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

    • func: function
        • Parameters

          Returns any

    Returns Array<any>

reduce

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

    • func: function
        • Parameters

          Returns any

    • Optional initialValue: any

    Returns any

set

  • set(key: string, value: Channel): this
  • 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

    • func: function
        • Parameters

          Returns boolean

    Returns boolean

sort

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

    • Optional func: undefined | function

    Returns Array<Channel>

startInterval

  • startInterval(): void
  • Returns void

stopInterval

  • stopInterval(): void
  • Returns void

toArray

  • Returns Array<Channel>

toJSON

  • Returns Array<Channel>

toString

  • toString(): string
  • Returns string

values

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

Generated using TypeDoc