pub async fn dispatch<S, H: InteractionHandler<S>>(
interaction: Interaction,
handler: &H,
state: &S,
) -> Result<InteractionResponse, HandlerError>Expand description
Routes an Interaction to the handler. Ping is answered with Pong. Render an Err with the
handler’s InteractionHandler::render_error. A Components V2 message that also sets
content, embeds or a poll is an Err, since Discord would reject it.