Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Player<T>

Type parameters

Hierarchy

  • EventEmitter
    • Player

Index

Constructors

  • new Player<T>(node: T, guildID: string): Player<T>

Properties

guildID: string
lastPosition: null | IncomingPlayerUpdatePayloadState = null
node: T
status: Status = Status.Instantiated

Accessors

  • get paused(): boolean
  • get playing(): boolean
  • get position(): number
  • get voiceServer(): null | GatewayVoiceServerUpdateDispatchData
  • get voiceState(): null | GatewayVoiceState

Methods

  • destroy(): Promise<void>
  • join(channel: null | string, __namedParameters?: JoinOptions): unknown
  • leave(): unknown
  • pause(pause?: boolean): Promise<void>
  • seek(position: number): Promise<void>
  • Sets the filters for the player.

    note

    This is not available in Lavalink v3.3.

    Parameters

    Returns Promise<void>

  • setVolume(volume: number): Promise<void>
  • Parameters

    • volume: number

      The new volume to be set.

    Returns Promise<void>

  • stop(): Promise<void>
  • voiceUpdate(sessionId: string, event: GatewayVoiceServerUpdateDispatchData): Promise<void>
  • Parameters

    • sessionId: string
    • event: GatewayVoiceServerUpdateDispatchData

    Returns Promise<void>

Generated using TypeDoc