Package discord4j.gateway
Interface PayloadHandler<T extends discord4j.discordjson.json.gateway.PayloadData>
-
- Type Parameters:
T- the type of the payload data
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface PayloadHandler<T extends discord4j.discordjson.json.gateway.PayloadData>
Handler for a gateway payload.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Mono<Void>handle(GatewayPayload<T> context)Perform an action on a payload together with its context, which allows access to various gateway resources.
-
-
-
Method Detail
-
handle
Mono<Void> handle(GatewayPayload<T> context)
Perform an action on a payload together with its context, which allows access to various gateway resources.- Parameters:
context- the payload's gateway context
-
-