pub trait EventDrivenMessage: Send + Sync {
fn is_frozen(&self) -> bool { ... }
fn update<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_http: &'life1 Http
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
{ ... }
fn on_deleted<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 Context
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
{ ... }
fn on_reaction_add<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 Context,
_reaction: Reaction
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
{ ... }
fn on_reaction_remove<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 Context,
_reaction: Reaction
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
{ ... }
}
Provided Methods
Returns if a message has been frozen and won’t handle any further events
Fired periodically
Fired when the message was deleted
Fired when a reaction was added to the message
Fired when a reaction was removed from the message