Opcode enum

Opcodes sent or received over the Gateway.

Inheritance
Available extensions

Values

dispatch → const Opcode

An event is dispatched to the client.

const Opcode._(0)
heartbeat → const Opcode

Sent when heartbeating or received when requesting a heartbeat.

const Opcode._(1)
identify → const Opcode

Sent when opening a Gateway session.

const Opcode._(2)
presenceUpdate → const Opcode

Sent when updating the client's presence.

const Opcode._(3)
voiceStateUpdate → const Opcode

Sent when updating the client's voice state.

const Opcode._(4)
resume → const Opcode

Send when resuming a Gateway session.

const Opcode._(6)
reconnect → const Opcode

Received when the client should reconnect.

const Opcode._(7)
requestGuildMembers → const Opcode

Sent to request guild members.

const Opcode._(8)
invalidSession → const Opcode

Received when the client's session is invalid.

const Opcode._(9)
hello → const Opcode

Received when the connection to the Gateway is opened.

const Opcode._(10)
heartbeatAck → const Opcode

Received when the server receives the client's heartbeat.

const Opcode._(11)
lazyRequestGuildMembers → const Opcode

Send to lazily request guild members.

const Opcode._(14)
streamCreate → const Opcode

Sent when creating a stream.

const Opcode._(18)
streamDelete → const Opcode

Sent when deleting a stream.

const Opcode._(19)
streamWatch → const Opcode

Sent when watching a stream.

const Opcode._(20)
streamPing → const Opcode

Sent to ping a stream.

const Opcode._(21)
streamSetPaused → const Opcode

Sent to set a stream as paused.

const Opcode._(22)
requestGuildApplicationCommands → const Opcode

Sent to request guild application commands.

const Opcode._(24)
embeddedActivityLaunch → const Opcode

Sent to launch an embedded activity.

const Opcode._(25)
embeddedActivityClose → const Opcode

Sent to close an embedded activity.

const Opcode._(26)
embeddedActivityUpdate → const Opcode

Sent to update an embedded activity.

const Opcode._(27)
requestForumUnreads → const Opcode

Sent to request forum unread messages.

const Opcode._(28)
remoteCommand → const Opcode

Sent for a remote command.

const Opcode._(29)
getDeletedEntityIdsNotMatchingHash → const Opcode

Sent to get deleted entity IDs not matching a hash.

const Opcode._(30)
requestSoundboardSounds → const Opcode

Sent to request soundboard sounds.

const Opcode._(31)
speedTestCreate → const Opcode

Sent to create a speed test.

const Opcode._(32)
speedTestDelete → const Opcode

Sent to delete a speed test.

const Opcode._(33)
requestLastMessages → const Opcode

Sent to request last messages.

const Opcode._(34)
searchRecentMembers → const Opcode

Sent to search recent members.

const Opcode._(35)
requestChannelStatuses → const Opcode

Sent to request channel statuses.

const Opcode._(36)
guildSubscriptionsBulk → const Opcode

Sent for bulk guild subscriptions.

const Opcode._(37)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The value of this Opcode.
final

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

Constants

values → const List<Opcode>
A constant List of the values in this enum, in order of their declaration.