diff --git a/src/commands/send.rs b/src/commands/send.rs index b4166e7..48a3f4f 100644 --- a/src/commands/send.rs +++ b/src/commands/send.rs @@ -14,7 +14,7 @@ pub enum SendTargetParseError { ChannelError(#[from] GuildChannelParseError), #[error("error during parsing as message")] MessageError(#[from] MessageParseError), - #[error("failed to parse target")] + #[error("target is neither a channel, user, or message")] Malformed, } @@ -48,7 +48,6 @@ impl serenity::ArgumentConvert for SendTarget { match channel_result { Ok(channel) => return Ok(Self::Channel(Box::new(channel))), Err(ref e) => { - tracing::error!("{:?}", e); if let GuildChannelParseError::Http(_) = e { channel_result?; }