OpCode

@Serializable(with = OpCodeSerializer::class)
enum OpCode : Enum<OpCode> (source)

The discord gateway event.

Entries

Link copied to clipboard

Fallback opcode, in case discord has one they don't tell us about

Link copied to clipboard

A discord event has been sent to the client.

Link copied to clipboard

Connection heartbeat, requesting a OpCode.HEARTBEAT_ACK.

Link copied to clipboard

Called after OpCode.HELLO is received if this is a new session.

Link copied to clipboard

Received when a user presence or status update has occurred.

Link copied to clipboard

Received when a user join/leaves/moves voice servers.

Link copied to clipboard

Called after OpCode.HELLO is received if this is an existing session.

Link copied to clipboard

The server has requested the client reconnect.

Link copied to clipboard

Sent to the server to request guild members chunks be sent.

Link copied to clipboard

The gateway session is invalid and should be reestablished.

Link copied to clipboard

The gateway has acknowledged the connection and the client needs to identify itself.

Link copied to clipboard

Acknowledgement of a OpCode.HEARTBEAT.

Properties

Link copied to clipboard
val code: Int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): OpCode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.