From f13d50e0f642fa733b3918f9fcb7bf42169b36b2 Mon Sep 17 00:00:00 2001 From: tretrauit Date: Wed, 10 Jan 2024 12:44:58 +0700 Subject: [PATCH] chore: remove log level restriction in debug commands --- swordfish/src/main.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/swordfish/src/main.rs b/swordfish/src/main.rs index 9a7f4c8..7be760e 100644 --- a/swordfish/src/main.rs +++ b/swordfish/src/main.rs @@ -321,9 +321,6 @@ async fn ping(ctx: &Context, msg: &Message) -> CommandResult { #[command] async fn debug(ctx: &Context, msg: &Message) -> CommandResult { let config = CONFIG.get().unwrap(); - if !["debug", "trace"].contains(&config.log.level.as_str()) { - return Ok(()); - } if !config.debug.allowed_users.contains(&msg.author.id.get()) { return Ok(()); }