1 2 3 4 5 6 7 8 9 10 11
use crate::error::Error; use crate::hub::Hub; use async_trait::async_trait; use std::sync::Arc; #[async_trait] pub trait Cog: Send + Sync + 'static { async fn new(hub: Arc<Hub>) -> Result<Self, Error> where Self: Sized; }