Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Player<N>

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Private [_voiceUpdate]

[_voiceUpdate]: Partial<VoiceUpdateData> = {}

Private [_volume]

[_volume]: number = 100

channelId

channelId: null | string = null

connected

connected: boolean = false

filters

filters: Partial<FilterData> = {}

Readonly guildId

guildId: string

Readonly node

node: N

paused

paused: boolean = false

playing

playing: boolean = false

Optional playingSince

playingSince: number

Optional position

position: number

Optional track

track: string

Static USE_FILTERS

USE_FILTERS: boolean = false

Accessors

volume

  • get volume(): number

Methods

connect

destroy

  • destroy(): Promise<Player<N>>

disconnect

handleEvent

  • handleEvent(event: PlayerEvent): void

handleVoiceUpdate

pause

  • pause(state?: boolean): Promise<Player<N>>

play

resume

  • resume(): Promise<Player<N>>

seek

  • seek(position: number): Promise<Player<N>>

setEqualizer

  • setEqualizer(...gains: number[]): Promise<Player<N>>
  • setEqualizer(...bands: EqualizerBand[]): Promise<Player<N>>

setFilters

  • setFilters(): Promise<Player<N>>
  • setFilters(filters: Partial<FilterData>): Promise<Player<N>>
  • setFilters<F>(filter: F, data: FilterData[F]): Promise<Player<N>>

setVolume

  • setVolume(volume: number): Promise<Player<N>>

stop

Generated using TypeDoc