Class LavalinkBridgeConfiguration
- Namespace
- DisCatSharp.Lavalink.Bridge
- Assembly
- DisCatSharp.Lavalink.dll
Configuration for the optional Lavalink transport bridge.
public sealed class LavalinkBridgeConfiguration
- Inheritance
-
LavalinkBridgeConfiguration
- Inherited Members
Remarks
When enabled, Lavalink produces Opus frames and exports them over a WebSocket bridge to DisCatSharp.Voice, which handles Discord voice transport (RTP, DAVE E2EE, AEAD, UDP).
Constructors
- LavalinkBridgeConfiguration()
Creates a new instance of LavalinkBridgeConfiguration.
- LavalinkBridgeConfiguration(LavalinkBridgeConfiguration)
Creates a new instance of LavalinkBridgeConfiguration, copying the properties of another configuration.
Properties
- BridgeAuthToken
The authentication token for the bridge WebSocket connection.
Sent as
Authorization: Bearer {token}header.Required when EnableExternalVoiceBridge is true.
- BridgeEndpoint
The WebSocket endpoint for the Lavalink bridge.
Example:
ws://localhost:2335/bridge/v1Required when EnableExternalVoiceBridge is true.
- EnableExternalVoiceBridge
Enables the external voice bridge mode.
When enabled, DisCatSharp.Lavalink connects to the Lavalink bridge WebSocket and routes Opus frames through DisCatSharp.Voice instead of Lavalink's built-in Koe transport.
Defaults to false.
- MaxReconnectAttempts
Maximum number of reconnection attempts before giving up.
Set to -1 for unlimited retries. Defaults to 10.
- ReconnectDelay
Delay between bridge reconnection attempts.
Defaults to 5 seconds.