Type alias GatewayShardEvents

GatewayShardEvents: {
    CONNECTING: (() => void);
    DISCONNECTED: (() => void);
    GUILDS_READY: (() => void);
    IDLE: (() => void);
    READY: (() => void);
    RECEIVED_PAYLOAD: ((payload) => void);
    SENT_PAYLOAD: ((payload) => void);
}

Gateway shard events.

Type declaration

  • CONNECTING: (() => void)
  • DISCONNECTED: (() => void)
  • GUILDS_READY: (() => void)
  • IDLE: (() => void)
  • READY: (() => void)
  • RECEIVED_PAYLOAD: ((payload) => void)
      • (payload): void
      • When the shard receives a payload. Data is the parsed payload.

        Parameters

        • payload: DiscordTypes.GatewayDispatchPayload

        Returns void

  • SENT_PAYLOAD: ((payload) => void)
      • (payload): void
      • When a payload is sent. Data is the sent payload.

        Parameters

        • payload: string

        Returns void

Generated using TypeDoc