DiscordRateLimitException

class DiscordRateLimitException(message: String, val retryAfterSeconds: Double, val isGlobalRateLimit: Boolean) : DiscordHttpException(source)

Thrown when a client calls an endpoint too many times.

Parameters

message

The error returned by the API.

Constructors

Link copied to clipboard
constructor(message: String, retryAfterSeconds: Double, isGlobalRateLimit: Boolean)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

if the rate limit is API specific or global.

Link copied to clipboard
open val message: String?
Link copied to clipboard

When the rate limit resets in seconds.