ReactionInterface
Table of Contents
Methods
- getDescription() : string
- A meaningful description for the reaction
- getIconIdentifier() : string
- An icon identifier for the reaction
- getType() : string
- The reaction type, used for the registry and stored in the database
- react() : ResponseInterface
- Main method of the reaction, handling the incoming request
Methods
getDescription()
A meaningful description for the reaction
    public
            static        getDescription() : string
    Return values
stringgetIconIdentifier()
An icon identifier for the reaction
    public
            static        getIconIdentifier() : string
    Return values
stringgetType()
The reaction type, used for the registry and stored in the database
    public
            static        getType() : string
    Return values
stringreact()
Main method of the reaction, handling the incoming request
    public
                    react(ServerRequestInterface $request, array<string|int, mixed> $payload, ReactionInstruction $reaction) : ResponseInterface
    Parameters
- $request : ServerRequestInterface
- $payload : array<string|int, mixed>
- $reaction : ReactionInstruction