LavalinkClient constructor
LavalinkClient({})
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,
);