Trait sfr_server::SlashCommandHandlerTrait

source ·
pub trait SlashCommandHandlerTrait: Send + Sync {
    // Required method
    fn handle_slash_command<'life0, 'life1, 'async_trait>(
        &'life0 self,
        client: &'life1 SlackClient,
        body: SlashCommandBody,
    ) -> Pin<Box<dyn Future<Output = Result<SlashCommandResponse, ResponseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

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

Required Methods§

source

fn handle_slash_command<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 SlackClient, body: SlashCommandBody, ) -> Pin<Box<dyn Future<Output = Result<SlashCommandResponse, ResponseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§