feat(command/moderation): adding the debug print to clear
This commit is contained in:
parent
4f3badf5a8
commit
d0bedf904c
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ impl SlashCommand for Clear {
|
||||||
_database: &PgPool,
|
_database: &PgPool,
|
||||||
_emoji: &EmojiConfig,
|
_emoji: &EmojiConfig,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
debug!("Clear command called");
|
debug!("{} command called", self.name());
|
||||||
let amount: u8 = command.data.options.iter().find(|opt | opt.kind() == CommandOptionType::Integer)
|
let amount: u8 = command.data.options.iter().find(|opt | opt.kind() == CommandOptionType::Integer)
|
||||||
.unwrap().value.as_i64().expect("REASON") as u8;
|
.unwrap().value.as_i64().expect("REASON") as u8;
|
||||||
let message: CreateInteractionResponseMessage = CreateInteractionResponseMessage::new()
|
let message: CreateInteractionResponseMessage = CreateInteractionResponseMessage::new()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue