You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
320 B
Rust
16 lines
320 B
Rust
3 years ago
|
use thiserror::Error;
|
||
|
|
||
|
pub type BotResult<T> = Result<T, BotError>;
|
||
|
|
||
|
#[derive(Error, Debug)]
|
||
|
pub enum BotError {
|
||
|
#[error("Serenity Error: {0}")]
|
||
|
SerenityError(#[from] serenity::Error),
|
||
|
|
||
|
#[error("Sqlite Error: {0}")]
|
||
|
Sqlite(#[from] rusqlite::Error),
|
||
|
|
||
|
#[error("Missing Bot Token")]
|
||
|
MissingToken,
|
||
|
}
|