From 8648f707a3991b44d6cc1275969e1ae64855e3fd Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 16 Feb 2026 23:50:33 +0100 Subject: [PATCH] style(commands/moderation): adding tracing.info to clear registration Co-authored-by: Maix0 --- src/commands/moderation/clear.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/moderation/clear.rs b/src/commands/moderation/clear.rs index 1ac4f3e..68761fb 100644 --- a/src/commands/moderation/clear.rs +++ b/src/commands/moderation/clear.rs @@ -4,9 +4,10 @@ use crate::commands::{CommandCategory, CommandEntry, SlashCommand}; use crate::config::EmojiConfig; use serenity::all::{ - CommandInteraction, CommandOption, CommandOptionType, Context, CreateCommand, CreateCommandOption, CreateInteractionResponse, CreateInteractionResponseMessage, EditInteractionResponse, GetMessages, InteractionContext, Message, MessageId, Permissions + CommandInteraction, CommandOptionType, Context, CreateCommand, CreateCommandOption, CreateInteractionResponse, CreateInteractionResponseMessage, EditInteractionResponse, GetMessages, InteractionContext, Message, MessageId, Permissions }; use sqlx::PgPool; +use tracing::info; pub struct Clear { pub command_id: AtomicU64, @@ -39,7 +40,7 @@ impl SlashCommand for Clear { } fn register(&self) -> CreateCommand { - println!("\t✅ | {}", self.name()); + info!("\t✅ | {}", self.name()); let mut options: Vec = Vec::new(); let amount: CreateCommandOption = CreateCommandOption::new(CommandOptionType::Integer, "amount", "Amount of messages to clear")