Class ReconnectEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.lifecycle.GatewayLifecycleEvent
-
- discord4j.core.event.domain.lifecycle.ReconnectEvent
-
public class ReconnectEvent extends GatewayLifecycleEvent
Indicates that a gateway connection has correctly reconnected.This event is dispatched by Discord4J.
-
-
Constructor Summary
Constructors Constructor Description ReconnectEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long currentAttempt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCurrentAttempt()
Gets the current reconnect attempt.String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
ReconnectEvent
public ReconnectEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long currentAttempt)
-
-