~.server
Server
Protocol
Bases: asyncio.DatagramProtocol
Background UDP protocol for communication with Discord's voice servers.
Create a UDP server protocol.
| PARAMETER | DESCRIPTION |
|---|---|
ip_discover_future
|
The future to set when our IP is discovered. |
rtp_listener
|
The callback to call when we receive a non-IP discovery packet. |
connection_made
connection_made(
transport: asyncio.DatagramTransport,
) -> None
Called automatically when a UDP connection is made.
| PARAMETER | DESCRIPTION |
|---|---|
transport
|
The UDP transport.
TYPE:
|
datagram_received
VoiceServer
VoiceServer(connection: VoiceConnection)
The background server responsible for communicating with Discord's voice servers.
Create a new voice server connection.
| PARAMETER | DESCRIPTION |
|---|---|
connection
|
The voice connection handling this server.
TYPE:
|
connect
async
disconnect
async
disconnect() -> None
Disconnect from Discord's voice server.