yorokobot/src/errors.rs
2022-10-18 23:20:33 -04:00

15 lines
352 B
Rust

//! Common Yorokobot errors
use mongodb::error::Error as MongoError;
use serenity::prelude::SerenityError;
/// The kind of errors that can be returned by Client::new
#[derive(Debug)]
pub enum ClientsError {
/// Serenity error while building client
Discord(SerenityError),
///Mongo error while parsing options
Database(MongoError),
}