public class DisconnectEvent extends GatewayLifecycleEvent
This event is dispatched by Discord4J.
Constructor and Description |
---|
DisconnectEvent(GatewayDiscordClient gateway,
ShardInfo shardInfo,
CloseStatus status,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Optional<Throwable> |
getCause() |
CloseStatus |
getStatus() |
String |
toString() |
getClient, getShardInfo
public DisconnectEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, CloseStatus status, @Nullable Throwable cause)