pub trait Event: Any + Send + Sync {
    fn event(&self) -> EventType;
    fn execute<'life0, 'life1, 'async_trait>(
        &'life0 self,
        client: &'life1 Client,
        data: EventData
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

Add a event to the plugin.

Required Methods

Type of the event.

Event function.

Implementors