D
- The type of the payload.public class DispatchContext<D> extends Object
DispatchHandler
defined under DispatchHandlers
.Modifier and Type | Method and Description |
---|---|
D |
getDispatch() |
GatewayDiscordClient |
getGateway() |
ShardInfo |
getShardInfo() |
StateHolder |
getStateHolder() |
static <D> DispatchContext<D> |
of(D dispatch,
GatewayDiscordClient gateway,
StateHolder stateHolder,
ShardInfo shardInfo) |
public static <D> DispatchContext<D> of(D dispatch, GatewayDiscordClient gateway, StateHolder stateHolder, ShardInfo shardInfo)
public D getDispatch()
public GatewayDiscordClient getGateway()
public StateHolder getStateHolder()
public ShardInfo getShardInfo()