RateLimitExceeded

@Serializable
data class RateLimitExceeded(val message: String, val retryAfterSeconds: Double, val isGlobal: Boolean)(source)

Over the wire representation of a DiscordRateLimitException.

Constructors

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

Properties

Link copied to clipboard
@SerialName(value = "global")
val isGlobal: Boolean

if the rate limit is API specific or global.

Link copied to clipboard
@SerialName(value = "message")
val message: String

The error returned by the API.

Link copied to clipboard
@SerialName(value = "retry_after")
val retryAfterSeconds: Double

When the rate limit resets in seconds.