Package discord4j.core.event.dispatch
Class DispatchContext<D,S>
java.lang.Object
discord4j.core.event.dispatch.DispatchContext<D,S>
- Type Parameters:
D
- the type of the payloadS
- the type of the old state
Represents gateway dispatch data enriched with context for processing through a
DispatchHandler
defined under DispatchHandlers
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <D,
S> DispatchContext<D, S> of
(StatefulDispatch<D, S> statefulDispatch, GatewayDiscordClient gateway)
-
Method Details
-
of
public static <D,S> DispatchContext<D,S> of(StatefulDispatch<D, S> statefulDispatch, GatewayDiscordClient gateway) -
getGateway
-
getDispatch
-
getShardInfo
-
getOldState
-