pub trait DiscordHandler: Send + Sync {
    // Required method
    fn on_message<'life0, 'async_trait>(
        &'life0 self,
        msg: DiscordMsg
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn on_message<'life0, 'async_trait>( &'life0 self, msg: DiscordMsg ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Method called when an Event or Error is received from Discord

Implementors§