style(commands/moderation): adding tracing.info to clear registration
Co-authored-by: Maix0 <maieul@familleboyer.net>
This commit is contained in:
parent
bb55c7e1d6
commit
8648f707a3
1 changed files with 3 additions and 2 deletions
|
|
@ -4,9 +4,10 @@ use crate::commands::{CommandCategory, CommandEntry, SlashCommand};
|
||||||
use crate::config::EmojiConfig;
|
use crate::config::EmojiConfig;
|
||||||
|
|
||||||
use serenity::all::{
|
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 sqlx::PgPool;
|
||||||
|
use tracing::info;
|
||||||
|
|
||||||
pub struct Clear {
|
pub struct Clear {
|
||||||
pub command_id: AtomicU64,
|
pub command_id: AtomicU64,
|
||||||
|
|
@ -39,7 +40,7 @@ impl SlashCommand for Clear {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn register(&self) -> CreateCommand {
|
fn register(&self) -> CreateCommand {
|
||||||
println!("\t✅ | {}", self.name());
|
info!("\t✅ | {}", self.name());
|
||||||
let mut options: Vec<CreateCommandOption> = Vec::new();
|
let mut options: Vec<CreateCommandOption> = Vec::new();
|
||||||
|
|
||||||
let amount: CreateCommandOption = CreateCommandOption::new(CommandOptionType::Integer, "amount", "Amount of messages to clear")
|
let amount: CreateCommandOption = CreateCommandOption::new(CommandOptionType::Integer, "amount", "Amount of messages to clear")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue