Class: VoiceConnectionUDPClient

VoiceConnectionUDPClient

Represents a UDP client for a Voice Connection.

Constructor

(private) new VoiceConnectionUDPClient()

Source:

Extends

  • EventEmitter

Members

(nullable) discordAddress :string

The address of the Discord voice server
Type:
  • string
Source:

(readonly) discordPort :number

The port of the Discord voice server
Type:
  • number
Source:

(nullable) localAddress :string

The local IP address
Type:
  • string
Source:

(nullable) localPort :string

The local port
Type:
  • string
Source:

(nullable) socket :Socket

The UDP socket
Type:
  • Socket
Source:

voiceConnection :VoiceConnection

The voice connection that this UDP client serves
Type:
Source:

Methods

send(packet) → {Promise.<Object>}

Send a packet to the UDP client.
Parameters:
Name Type Description
packet Object The packet to send
Source:
Returns:
Type
Promise.<Object>