Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VoiceStates

VoiceState Collection

Hierarchy

Index

Constructors

constructor

Properties

caches

caches: BaseCollection<K, BaseCollection<K, V>> = new BaseCollection<K, BaseCollection<K, V>>()

client

client: ShardClient

enabled

enabled: boolean

length

length: number

options

options: BaseCollectionOptions

Accessors

[Symbol.toStringTag]

  • get [Symbol.toStringTag](): string

size

  • get size(): number
  • Returns number

Methods

[Symbol.iterator]

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

clear

  • clear(): void
  • Returns void

delete

  • delete(cacheKey: string): boolean
  • delete(cacheKey: string | null | undefined, key: string): boolean
  • Parameters

    • cacheKey: string

    Returns boolean

  • Parameters

    • cacheKey: string | null | undefined
    • key: string

    Returns boolean

entries

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

every

  • every(func: function): boolean
  • Parameters

    • func: function

    Returns boolean

filter

  • Parameters

    • func: function

    Returns Array<VoiceState>

find

  • Parameters

    • func: function

    Returns VoiceState | undefined

first

  • Returns VoiceState | undefined

forEach

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

    Returns void

get

  • get(cacheKey: string): BaseCollection<string, VoiceState> | undefined
  • get(cacheKey: string | null | undefined, key: string): VoiceState | undefined
  • Parameters

    • cacheKey: string

    Returns BaseCollection<string, VoiceState> | undefined

  • Parameters

    • cacheKey: string | null | undefined
    • key: string

    Returns VoiceState | undefined

has

  • has(cacheKey: string): boolean
  • has(cacheKey: string | null | undefined, key: string): boolean
  • Parameters

    • cacheKey: string

    Returns boolean

  • Parameters

    • cacheKey: string | null | undefined
    • key: string

    Returns boolean

insert

  • Parameters

    Returns void

insertCache

  • insertCache(cacheKey: string): BaseCollection<string, VoiceState>

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

  • set(cacheKey: string, key: string, value: VoiceState): this
  • Parameters

    Returns this

setEnabled

  • setEnabled(value: boolean): void

some

  • some(func: function): boolean
  • Parameters

    • func: function

    Returns boolean

sort

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

    • Optional func: undefined | function

    Returns Array<VoiceState>

toArray

  • Returns Array<VoiceState>

toJSON

  • Returns Array<VoiceState>

toString

  • toString(): string
  • Returns string

values

Generated using TypeDoc