T - the type of the payload data@FunctionalInterface public interface PayloadHandler<T extends discord4j.discordjson.json.gateway.PayloadData>
| Modifier and Type | Method and Description |
|---|---|
Mono<Void> |
handle(PayloadContext<T> context)
Perform an action on a payload together with its context, which allows access to various gateway resources.
|
Mono<Void> handle(PayloadContext<T> context)
context - the payload's gateway context