Browse Source

Update xml docs

pull/1537/head
Paulo 5 years ago
parent
commit
767ff40d1f
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      src/Discord.Net.Rest/Entities/Gateway/GatewayLimit.cs

+ 8
- 2
src/Discord.Net.Rest/Entities/Gateway/GatewayLimit.cs View File

@@ -6,12 +6,18 @@ namespace Discord.Rest
public struct GatewayLimit
{
/// <summary>
/// Gets or sets the maximum amount of this type of request in a time window, that is set by <see cref="Seconds"/>.
/// Gets or sets the maximum amount of this type of request in a time frame, that is set by <see cref="Seconds"/>.
/// </summary>
/// <returns>
/// Returns the maximum amount of this type of request in a time frame to not trigger the rate limit.
/// </returns>
public int Count { get; set; }
/// <summary>
/// Gets or sets the amount of seconds until the rate limiter resets the remaining requests <see cref="Count"/>.
/// Gets or sets the amount of seconds until the rate limiter resets the remaining requests back to <see cref="Count"/>.
/// </summary>
/// <returns>
/// Returns the amount of seconds that define the time frame to reset.
/// </returns>
public int Seconds { get; set; }

internal GatewayLimit(int count, int seconds)


Loading…
Cancel
Save