Browse Source

docs: Fix MaxWaitBetweenGuildAvailablesBeforeReady docs string

Signed-off-by: Still Hsu <dev@stillu.cc>
tags/2.3.0
Still Hsu 4 years ago
parent
commit
e31cdc7586
No known key found for this signature in database GPG Key ID: 206F30E2490F42C0
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      src/Discord.Net.WebSocket/DiscordSocketConfig.cs

+ 6
- 5
src/Discord.Net.WebSocket/DiscordSocketConfig.cs View File

@@ -102,7 +102,7 @@ namespace Discord.WebSocket
/// </remarks>
public bool AlwaysDownloadUsers { get; set; } = false;
/// <summary>
/// Gets or sets the timeout for event handlers, in milliseconds, after which a warning will be logged.
/// Gets or sets the timeout for event handlers, in milliseconds, after which a warning will be logged.
/// <c>null</c>disables this check.
/// </summary>
public int? HandlerTimeout { get; set; } = 3000;
@@ -138,16 +138,17 @@ namespace Discord.WebSocket
/// </remarks>
public int IdentifyMaxConcurrency { get; set; } = 1;

/// <summary>
/// Gets or sets the maximum wait time in milliseconds between GUILD_AVAILABLE events before firing READY.
///
/// If zero, READY will fire as soon as it is received and all guilds will be unavailable.
/// </summary>
/// <remarks>
/// <para>This property is measured in milliseconds, negative values will throw an exception.</para>
/// <para>This property is measured in milliseconds; negative values will throw an exception.</para>
/// <para>If a guild is not received before READY, it will be unavailable.</para>
/// </remarks>
/// <returns>
/// The maximum wait time in milliseconds between GUILD_AVAILABLE events before firing READY.
/// A <see cref="int"/> representing the maximum wait time in milliseconds between GUILD_AVAILABLE events
/// before firing READY.
/// </returns>
/// <exception cref="System.ArgumentException">Value must be at least 0.</exception>
public int MaxWaitBetweenGuildAvailablesBeforeReady {
@@ -162,7 +163,7 @@ namespace Discord.WebSocket
}
}
private int _maxWaitForGuildAvailable = 10000;
/// <summary>
/// Gets or sets gateway intents to limit what events are sent from Discord. Allows for more granular control than the <see cref="GuildSubscriptions"/> property.
/// </summary>


Loading…
Cancel
Save