| @@ -6,12 +6,18 @@ namespace Discord.Rest | |||||
| public struct GatewayLimit | public struct GatewayLimit | ||||
| { | { | ||||
| /// <summary> | /// <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> | /// </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; } | public int Count { get; set; } | ||||
| /// <summary> | /// <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> | /// </summary> | ||||
| /// <returns> | |||||
| /// Returns the amount of seconds that define the time frame to reset. | |||||
| /// </returns> | |||||
| public int Seconds { get; set; } | public int Seconds { get; set; } | ||||
| internal GatewayLimit(int count, int seconds) | internal GatewayLimit(int count, int seconds) | ||||