LavalinkClient constructor

LavalinkClient({
  1. required String host,
  2. required int port,
  3. required String password,
  4. required String userId,
  5. bool useSSL = false,
  6. Duration timeout = const Duration(seconds: 10),
  7. Duration heartbeatInterval = const Duration(seconds: 30),
  8. int maxReconnectAttempts = 10,
})

Implementation

LavalinkClient({
  required String host,
  required int port,
  required String password,
  required String userId,
  bool useSSL = false,
  Duration timeout = const Duration(seconds: 10),
  Duration heartbeatInterval = const Duration(seconds: 30),
  int maxReconnectAttempts = 10,
})  : rest = LavalinkRestClient(
        host: host,
        port: port,
        password: password,
        useSSL: useSSL,
        timeout: timeout,
      ),
      webSocket = LavalinkWebSocket(
        host: host,
        port: port,
        password: password,
        userId: userId,
        useSSL: useSSL,
        heartbeatInterval: heartbeatInterval,
        maxReconnectAttempts: maxReconnectAttempts,
      );