Skip to main content

SlashCommandHandlerTrait

Trait SlashCommandHandlerTrait 

Source
pub trait SlashCommandHandlerTrait: Send + Sync {
    // Required method
    fn handle_slash_command(
        &self,
        client: &SlackClient,
        body: SlashCommandBody,
    ) -> impl Future<Output = Result<SlashCommandResponse, ResponseError>> + Send;
}
Expand description

The trait representing the interface that acts as a slash command.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§