VoiceConnectionUDPClient
classe · Source
Represents a UDP client for a Voice Connection.
Extends: EventEmitter
Properties
voiceConnection
voiceConnection: VoiceConnection
The voice connection that this UDP client serves Source
socket
socket: Socket
The UDP socket Source
discordAddress
discordAddress: string
The address of the Discord voice server Source
localAddress
localAddress: string
The local IP address Source
localPort
localPort: string
The local port Source
discordPort
discordPort: number
The port of the Discord voice server Source
Methods
send
send(packet: Object): Promise<Object>
Send a packet to the UDP client. Parameters
| Name | Type | Description |
|---|---|---|
packet | Object | The packet to send |
Returns: Promise<Object>Source