Enum Class GatewayOp

java.lang.Object
java.lang.Enum<GatewayOp>
com.mewna.catnip.shard.GatewayOp
All Implemented Interfaces:
Serializable, Comparable<GatewayOp>, Constable

public enum GatewayOp extends Enum<GatewayOp>
Since:
8/15/18.
Author:
amy
  • Enum Constant Details

    • DISPATCH

      public static final GatewayOp DISPATCH
    • HEARTBEAT

      public static final GatewayOp HEARTBEAT
    • IDENTIFY

      public static final GatewayOp IDENTIFY
    • STATUS_UPDATE

      public static final GatewayOp STATUS_UPDATE
    • VOICE_STATE_UPDATE

      public static final GatewayOp VOICE_STATE_UPDATE
    • VOICE_SERVER_PING

      public static final GatewayOp VOICE_SERVER_PING
    • RESUME

      public static final GatewayOp RESUME
    • RECONNECT

      public static final GatewayOp RECONNECT
    • REQUEST_GUILD_MEMBERS

      public static final GatewayOp REQUEST_GUILD_MEMBERS
    • INVALID_SESSION

      public static final GatewayOp INVALID_SESSION
    • HELLO

      public static final GatewayOp HELLO
    • HEARTBEAT_ACK

      public static final GatewayOp HEARTBEAT_ACK
    • GUILD_SYNC

      public static final GatewayOp GUILD_SYNC
  • Method Details

    • values

      public static GatewayOp[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GatewayOp valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • byId

      @Nonnull @CheckReturnValue public static GatewayOp byId(@Nonnegative int id)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<GatewayOp>
    • opcode

      public int opcode()