EventHandler

Trait EventHandler 

Source
pub trait EventHandler: Send + Sync {
    // Provided methods
    fn ready<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _ready: ReadyEventData<'life1>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn message_create<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _msg: Message<'life1>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn interaction_create<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _interaction: Interaction<'life1>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn reaction_add<'life0, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _add: MessageReactionAddEvent<'async_trait>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn thread_create<'life0, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _thread: Channel<'async_trait>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn role_create<'life0, 'async_trait>(
        &'life0 self,
        _ctx: Context,
        _role: GuildRoleEvent<'async_trait>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Provided Methods§

Source

fn ready<'life0, 'life1, 'async_trait>( &'life0 self, _ctx: Context, _ready: ReadyEventData<'life1>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn message_create<'life0, 'life1, 'async_trait>( &'life0 self, _ctx: Context, _msg: Message<'life1>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn interaction_create<'life0, 'life1, 'async_trait>( &'life0 self, _ctx: Context, _interaction: Interaction<'life1>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn reaction_add<'life0, 'async_trait>( &'life0 self, _ctx: Context, _add: MessageReactionAddEvent<'async_trait>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn thread_create<'life0, 'async_trait>( &'life0 self, _ctx: Context, _thread: Channel<'async_trait>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn role_create<'life0, 'async_trait>( &'life0 self, _ctx: Context, _role: GuildRoleEvent<'async_trait>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§