Class VoiceState

Represents the voice connection state for a guild Manages voice connection, node changes, and player state

Constructors

Properties

guildId: string
player: Player<QueueContext, []>

Accessors

  • get regionId(): null | string
  • Voice region ID (e.g., "us-west", "eu-central")

    Returns null | string

  • get suppressed(): boolean
  • Whether the bot is suppressed (priority speaker)

    Returns boolean

  • get changingNode(): boolean
  • Whether the voice connection is changing nodes

    Returns boolean

  • get nodeSessionId(): null | string
  • Node session ID this voice state is connected to

    Returns null | string

Methods

  • Destroy this voice connection

    Parameters

    • Optional reason: string

      Optional reason for destruction

    Returns Promise<void>

  • Connect to a voice channel

    Parameters

    • channelId: string = ...

      Voice channel ID (defaults to current channel)

    Returns Promise<void>

  • Change to a different Lavalink node Preserves playback state and filters

    Parameters

    • name: string

      Name of the node to change to

    Returns Promise<void>