Skip to content

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 ​

nullable

socket: Socket

The UDP socket Source

discordAddress ​

nullable

discordAddress: string

The address of the Discord voice server Source

localAddress ​

nullable

localAddress: string

The local IP address Source

localPort ​

nullable

localPort: string

The local port Source

discordPort ​

readonly

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

NameTypeDescription
packetObjectThe packet to send

Returns: Promise<Object>Source

Unofficial software. Not affiliated with or supported by Discord.