DiscordLua
discorddiscord
v1.2.4
Install

WebSocketShardEvents

Enum
On this page

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

Values

discord.WebSocketShardEvents.Ready
ready
Ready. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardEvents.Closed
close
Closed. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardEvents.Close
close
Close. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardEvents.AllReady
allReady
All Ready. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardEvents.Error
error
Error. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardEvents.Resumed
resumed
Resumed. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardEvents.HeartbeatComplete
heartbeat
Heartbeat Complete. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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