Interface LifecycleEvent


public interface LifecycleEvent
Since:
10/17/18.
Author:
amy
  • Field Details

    • CONNECTING

      static final EventType<ShardInfo> CONNECTING
      Fired when the shard is created and is about to connect to the websocket gateway. The payload is a shard id / total pair.
    • CONNECTED

      static final EventType<ShardInfo> CONNECTED
      Fired when the shard has connected to the websocket gateway, but has not yet sent an IDENTIFY payload. The payload is a shard id / total pair.
    • DISCONNECTED

      static final EventType<ShardInfo> DISCONNECTED
      Fired when the shard has disconnected from the websocket gateway, and will (hopefully) be reconnecting. The payload is a shard id / total pair.
    • IDENTIFIED

      static final EventType<ShardInfo> IDENTIFIED
      Fired when the shard has successfully IDENTIFYd with the websocket gateway. This is effectively the same as listening on DiscordEvent.READY. The payload is a shard id / total pair.
    • RESUMED

      static final EventType<ShardInfo> RESUMED
      Fired when the shard has successfully RESUMEd with the websocket gateway. The payload is a shard id / total pair.
    • SESSION_INVALIDATED

      static final EventType<ShardInfo> SESSION_INVALIDATED
      Fired when the shard's session is invalidated, be it from an OP 9 or other cause.
    • CHUNKING_DONE

      static final EventType<ChunkingDone> CHUNKING_DONE
      Fired when all guild chunking has been completed.
    • MEMBER_CHUNK_REREQUEST

      static final EventType<MemberChunkRerequest> MEMBER_CHUNK_REREQUEST
      Fired if manual member chunk re-requesting is enabled.
    • WEBSOCKET_CLOSED

      static final EventType<GatewayClosed> WEBSOCKET_CLOSED
      Fired when a shard's gateway websocket closes.
    • WEBSOCKET_CONNECTION_FAILED

      static final EventType<GatewayConnectionFailed> WEBSOCKET_CONNECTION_FAILED
      Fired when a shard fails to connect to Discord's websocket gateway.
    • REST_RATELIMIT_HIT

      static final EventType<RestRatelimitHit> REST_RATELIMIT_HIT
      Fired whenever a REST route hits a ratelimit (HTTP 429).
    • HIGH_WEBSOCKET_LATENCY

      static final EventType<HighWebsocketLatency> HIGH_WEBSOCKET_LATENCY
      Fired whenever a shard's latency is higher than the value specified in CatnipOptions.highLatencyThreshold().