use poise::FrameworkError; #[derive(Debug, thiserror::Error)] pub enum Error { #[error("Serenity: {0}")] Serenity(#[from] serenity::prelude::SerenityError), #[error("SQL: {0}")] Sql(#[from] sqlx::Error), #[error("Unknown: {0}")] Unknown(String), #[error("Catch-all: {0}")] CatchAll(#[from] Box), } unsafe impl Send for Error { } unsafe impl Sync for Error { }