Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions NetCord/Gateway/Voice/GatewayClientExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static class GatewayClientExtensions
/// <param name="guildId">The ID of the guild containing the channel.</param>
/// <param name="channelId">The ID of the voice channel to join.</param>
/// <param name="configuration">Configuration settings for the <see cref="VoiceClient"/>.</param>
/// <param name="timeout">The maximum amount of time to wait for the voice state and server update events. If not specified, a default timeout of 2 seconds is used.</param>
/// <param name="timeout">The maximum amount of time to wait for the voice state and server update events. If not specified, a default timeout of 5 seconds is used.</param>
/// <param name="timeProvider">The <see cref="TimeProvider"/> to use for measuring the timeout. If not specified, <see cref="TimeProvider.System"/> is used.</param>
/// <param name="cancellationToken">Cancellation token for the operation.</param>
/// <remarks>This method is not thread safe and should not be used concurrently for the same <paramref name="guildId"/>.</remarks>
Expand Down Expand Up @@ -48,7 +48,7 @@ public static async Task<VoiceClient> JoinVoiceChannelAsync(this GatewayClient c

try
{
await eventsTaskCompletionSource.Task.WaitAsync(timeout ?? new(2 * TimeSpan.TicksPerSecond),
await eventsTaskCompletionSource.Task.WaitAsync(timeout ?? new(5 * TimeSpan.TicksPerSecond),
timeProvider ?? TimeProvider.System,
cancellationToken).ConfigureAwait(false);
}
Expand Down