Class ReconnectFailEvent


  • public class ReconnectFailEvent
    extends GatewayLifecycleEvent
    Indicates that a reconnection attempt has failed and a new attempt should be scheduled, in that case, this event will be followed by a ReconnectStartEvent.

    This event is dispatched by Discord4J.

    • Method Detail

      • getCurrentAttempt

        public long getCurrentAttempt()
        Gets the current reconnect attempt.
        Returns:
        The current reconnect attempt.