HarmonyLink Documentation

    ConnectionHandler

    harmonylinkDocs


    harmonylink / ConnectionHandler

    Class: ConnectionHandler

    Constructors

    new ConnectionHandler()

    new ConnectionHandler(player, options): ConnectionHandler

    Parameters

    player: Player

    options: PlayerOptions

    Returns

    ConnectionHandler

    Defined in

    src/player/Connection.ts:10

    Properties

    options

    options: ConnectionOptions

    Defined in

    src/player/Connection.ts:8


    player

    readonly player: Player

    Defined in

    src/player/Connection.ts:7

    Methods

    setServersUpdate()

    setServersUpdate(data): Promise<void>

    Updates the voice server of the player.

    Parameters

    data: VoiceServer

    The incoming data from the voice server from discord.

    Returns

    Promise<void>

    Defined in

    src/player/Connection.ts:19


    setStateUpdate()

    setStateUpdate(data): void

    Updates the state of the player.

    Parameters

    data: SetStateUpdate

    The incoming data from the voice server from discord.

    Returns

    void

    Defined in

    src/player/Connection.ts:48