Table of Contents
API reference

Method WaitForDaveActiveAsync

Namespace
DisCatSharp.Voice
Assembly
DisCatSharp.Voice.dll

WaitForDaveActiveAsync(TimeSpan, CancellationToken)

Waits until DAVE transitions to Active or the timeout elapses.

public Task<bool> WaitForDaveActiveAsync(TimeSpan timeout, CancellationToken cancellationToken = default)

Parameters

timeout TimeSpan

Maximum time to wait.

cancellationToken CancellationToken

Cancellation token used to abort waiting.

Returns

Task<bool>

true if DAVE became active before timeout; otherwise false.