Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/Gateway/GatewayOPCode.cs
2017-05-14 14:02:51 +02:00

69 lines
1.6 KiB
C#

namespace Maki.Gateway
{
/// <summary>
/// Gateway OPcodes
/// </summary>
enum GatewayOPCode
{
/// <summary>
/// dispatches an event
/// </summary>
Dispatch = 0,
/// <summary>
/// used for ping checking
/// </summary>
Heartbeat = 1,
/// <summary>
/// used for client handshake
/// </summary>
Identify = 2,
/// <summary>
/// used to update the client status
/// </summary>
StatusUpdate = 3,
/// <summary>
/// used to join/move/leave voice channels
/// </summary>
VoiceStateUpdate = 4,
/// <summary>
/// used for voice ping checking
/// </summary>
VoiceServerPing = 5,
/// <summary>
/// used to resume a closed connection
/// </summary>
Resume = 6,
/// <summary>
/// used to tell client to reconnect to the gateway
/// </summary>
Reconnect = 7,
/// <summary>
/// used to request guild members
/// </summary>
RequestGuildMembers = 8,
/// <summary>
/// used to notify client they have an invalid session id
/// </summary>
InvalidSession = 9,
/// <summary>
/// sent immediately after connecting, contains heartbeat and server debug information
/// </summary>
Hello = 10,
/// <summary>
/// sent immediately following a client heartbeat that was received
/// </summary>
HeartbeatACK = 11
}
}