diff --git a/src/main.rs b/src/main.rs index 6f1a425..fd5ff8d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,20 +20,6 @@ pub struct Data { pub directus: DirectusClient, } -async fn on_error(error: poise::FrameworkError<'_, Data, Error>) { - match error { - poise::FrameworkError::Setup { error, .. } => panic!("Failed to start bot: {error:?}"), - poise::FrameworkError::Command { error, ctx, .. } => { - println!("Error in command `{}`: {:?}", ctx.command().name, error,); - } - error => { - if let Err(e) = poise::builtins::on_error(error).await { - println!("Error while handling error: {e}") - } - } - } -} - #[tokio::main] async fn main() { let cli = Cli::parse();