1 2 3 4 5 6 7 8 9 10 11 12
use std::sync::Arc; use robespierre_models::channels::Message; pub mod standard; #[async_trait::async_trait] pub trait Framework: Send + Sync + 'static { type Context: 'static; async fn handle(&self, ctx: Self::Context, message: &Arc<Message>); }