Class ReconnectedEvent

  • All Implemented Interfaces:
    GenericEvent

    public class ReconnectedEvent
    extends Event
    Indicates if JDA successfully re-established its connection to the gateway.
    All Objects have been replaced when this is fired and events were likely missed in the downtime.

    Can be used to mark the continuation of event flow which was stopped by the DisconnectEvent. User should replace any cached Objects (like User/Guild objects).

    • Constructor Detail

      • ReconnectedEvent

        public ReconnectedEvent​(@Nonnull
                                JDA api,
                                long responseNumber)