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§
sourcefn 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,
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,
Handles SlashCommandBody.