DiscordLua
discorddiscord
v1.2.4
Install

WebSocketShardStatus

Enum
On this page

discord.WebSocketShardStatus lists the named constants for this enumeration. Prefer these names over hardcoded literals.

Values

discord.WebSocketShardStatus.Idle
0
Idle. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardStatus.Connecting
1
Connecting. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardStatus.Resuming
2
Resuming. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardStatus.Ready
3
Ready. Use the symbolic name in bot code rather than the raw value.

Usage

Read members as discord.WebSocketShardStatus.Name. Do not hard-code numeric literals when a symbolic name exists.

Example

lua
local discord = require("discord")
print(discord.WebSocketShardStatus.Idle)
Search Ctrl K Navigate Open Esc