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
359 B
Rust
16 lines
359 B
Rust
use thiserror::Error;
|
|
|
|
pub type SerenityUtilsResult<T> = Result<T, SerenityUtilsError>;
|
|
|
|
#[derive(Debug, Error)]
|
|
pub enum SerenityUtilsError {
|
|
#[error("Serenity Error: {0}")]
|
|
SerenityError(#[from] serenity::Error),
|
|
|
|
#[error("Page {0} not found")]
|
|
PageNotFound(usize),
|
|
|
|
#[error("Serenity Utils not fully initialized")]
|
|
Uninitialized,
|
|
}
|