GatewayOpcodes
EnumOn this page
discord.GatewayOpcodes lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.GatewayOpcodes.Dispatch0Dispatch. Use the symbolic name in bot code rather than the raw value.
discord.GatewayOpcodes.Heartbeat1Heartbeat. Use the symbolic name in bot code rather than the raw value.
discord.GatewayOpcodes.Identify2Identify. Use the symbolic name in bot code rather than the raw value.
discord.GatewayOpcodes.PresenceUpdate3Presence Update. Use the symbolic name in bot code rather than the raw value.
discord.GatewayOpcodes.VoiceStateUpdate4Voice State Update. Use the symbolic name in bot code rather than the raw value.
discord.GatewayOpcodes.Resume6Resume. Use the symbolic name in bot code rather than the raw value.
discord.GatewayOpcodes.Reconnect7Reconnect. Use the symbolic name in bot code rather than the raw value.
discord.GatewayOpcodes.RequestGuildMembers8Request Guild Members. Use the symbolic name in bot code rather than the raw value.
discord.GatewayOpcodes.InvalidSession9Invalid Session. Use the symbolic name in bot code rather than the raw value.
discord.GatewayOpcodes.Hello10Hello. Use the symbolic name in bot code rather than the raw value.
discord.GatewayOpcodes.HeartbeatAck11Heartbeat Ack. Use the symbolic name in bot code rather than the raw value.
Usage
Read members as discord.GatewayOpcodes.Name. Do not hard-code numeric literals when a symbolic name exists.
Example
local discord = require("discord")
print(discord.GatewayOpcodes.Dispatch)