Constructor and Description |
---|
DispatchHandlers() |
Modifier and Type | Method and Description |
---|---|
static <D extends discord4j.gateway.json.dispatch.Dispatch,E extends Event> |
handle(DispatchContext<D> context)
Process a
Dispatch object wrapped with its context to
potentially obtain an Event . |
public static <D extends discord4j.gateway.json.dispatch.Dispatch,E extends Event> reactor.core.publisher.Mono<E> handle(DispatchContext<D> context)
Dispatch
object wrapped with its context to
potentially obtain an Event
.D
- the Dispatch typeE
- the resulting Event typecontext
- the DispatchContext used with this Dispatch object