DiscordLua
discorddiscord
v1.2.9
Install

RateLimitError

Error
On this page

RateLimitError is raised or passed to a REST callback when an operation fails. Read name and message; REST errors may also expose HTTP status and Discord error codes.

error Module 1.2.9 Source

Constructor

RateLimitError.new(message, extra)

The class table is callable, so RateLimitError(message, extra) is the same as .new.

NameTypeRequiredBehavior
message any required Passed through to the implementation as written.
extra any optional Passed through to the implementation as written.
lua
local discord = require("discord")
local object = discord.RateLimitError({}, {})

Properties

RateLimitError.global

# readonly
Name
global
Type
any
Access
readonly
Description
Instance field RateLimitError.global. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this RateLimitError.

RateLimitError.hash

# readonly
Name
hash
Type
any
Access
readonly
Description
Instance field RateLimitError.hash. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this RateLimitError.

RateLimitError.limit

# readonly
Name
limit
Type
any
Access
readonly
Description
Instance field RateLimitError.limit. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this RateLimitError.

RateLimitError.majorParameter

# readonly
Name
majorParameter
Type
any
Access
readonly
Description
Instance field RateLimitError.majorParameter. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this RateLimitError.

RateLimitError.method

# readonly
Name
method
Type
any
Access
readonly
Description
Instance field RateLimitError.method. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this RateLimitError.

RateLimitError.retryAfter

# readonly
Name
retryAfter
Type
any
Access
readonly
Description
Instance field RateLimitError.retryAfter. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this RateLimitError.

RateLimitError.route

# readonly
Name
route
Type
any
Access
readonly
Description
Instance field RateLimitError.route. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this RateLimitError.

RateLimitError.scope

# readonly
Name
scope
Type
any
Access
readonly
Description
Instance field RateLimitError.scope. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this RateLimitError.

RateLimitError.sublimitTimeout

# readonly
Name
sublimitTimeout
Type
any
Access
readonly
Description
Instance field RateLimitError.sublimitTimeout. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this RateLimitError.

RateLimitError.timeToReset

# readonly
Name
timeToReset
Type
any
Access
readonly
Description
Instance field RateLimitError.timeToReset. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this RateLimitError.

RateLimitError.url

# readonly
Name
url
Type
any
Access
readonly
Description
Instance field RateLimitError.url. Read it after the object is constructed or wrapped from Gateway/REST data.
Availability
Populated from the Gateway/REST payload or constructor for this RateLimitError.

Examples

lua
local discord = require("discord")
local object = discord.RateLimitError({})

AuthenticationError · DiscordAPIError · DiscordjsError · DiscordjsRangeError · DiscordjsTypeError · DiscordLuaError · GatewayError · GatewayRateLimitError

Version: discord 1.2.9 · runtime 1.0.0

Search Ctrl K Navigate Open Esc