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 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