use crate::db::Database; pub use poise::serenity_prelude as serenity; pub struct BotData { pub database: Database, } impl BotData { pub async fn new() -> color_eyre::Result { Ok(Self { database: Database::new().await?, }) } } pub type Error = Box; pub type Context<'a> = poise::Context<'a, BotData, Error>;