Opcode enum
Opcodes sent or received over the Gateway.
Values
- dispatch → const Opcode
-
An event is dispatched to the client.
Opcode._(0)
- heartbeat → const Opcode
-
Sent when heartbeating or received when requesting a heartbeat.
Opcode._(1)
- identify → const Opcode
-
Sent when opening a Gateway session.
Opcode._(2)
- presenceUpdate → const Opcode
-
Sent when updating the client's presence.
Opcode._(3)
- voiceStateUpdate → const Opcode
-
Sent when updating the client's voice state.
Opcode._(4)
- resume → const Opcode
-
Send when resuming a Gateway session.
Opcode._(6)
- reconnect → const Opcode
-
Received when the client should reconnect.
Opcode._(7)
- requestGuildMembers → const Opcode
-
Sent to request guild members.
Opcode._(8)
- invalidSession → const Opcode
-
Received when the client's session is invalid.
Opcode._(9)
- hello → const Opcode
-
Received when the connection to the Gateway is opened.
Opcode._(10)
- heartbeatAck → const Opcode
-
Received when the server receives the client's heartbeat.
Opcode._(11)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited