Class ReconnectFailEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.lifecycle.GatewayLifecycleEvent
-
- discord4j.core.event.domain.lifecycle.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 aReconnectStartEvent
.This event is dispatched by Discord4J.
-
-
Constructor Summary
Constructors Constructor Description ReconnectFailEvent(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
-
ReconnectFailEvent
public ReconnectFailEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long currentAttempt)
-
-