Extends
- EventEmitter
Members
(nullable) discordAddress :string
The address of the Discord voice server
Type:
- string
(readonly) discordPort :number
The port of the Discord voice server
Type:
- number
(nullable) localAddress :string
The local IP address
Type:
- string
(nullable) localPort :string
The local port
Type:
- string
(nullable) socket :Socket
The UDP socket
Type:
- Socket
voiceConnection :VoiceConnection
The voice connection that this UDP client serves
Type:
Methods
send(packet) → {Promise.<Object>}
Send a packet to the UDP client.
Parameters:
Name | Type | Description |
---|---|---|
packet |
Object | The packet to send |
Returns:
- Type
- Promise.<Object>