Class ReconnectedEvent

java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.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 Details

    • ReconnectedEvent

      public ReconnectedEvent(@Nonnull JDA api, long responseNumber)