WebSocketShardEvents
EnumOn this page
discord.WebSocketShardEvents lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.WebSocketShardEvents.ReadyreadyReady. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardEvents.ClosedcloseClosed. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardEvents.ClosecloseClose. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardEvents.AllReadyallReadyAll Ready. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardEvents.ErrorerrorError. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardEvents.ResumedresumedResumed. Use the symbolic name in bot code rather than the raw value.
discord.WebSocketShardEvents.HeartbeatCompleteheartbeatHeartbeat 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
local discord = require("discord")
print(discord.WebSocketShardEvents.Ready)