diff --git a/src/main.rs b/src/main.rs index 21c8860..752fa81 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,7 +47,7 @@ impl EventHandler for Handler async fn reaction_add(&self, ctx: Context, add_reaction: Reaction) { // println!("reaction_add event"); - utils::Logger::log_message(ctx.clone(), &format!("reaction add event, emoji: {:#?}", add_reaction.emoji)).await; + // utils::Logger::log_message(ctx.clone(), &format!("reaction add event, emoji: {:#?}", add_reaction.emoji)).await; // todo!() commands::handle_reaction_add(ctx, add_reaction).await; diff --git a/src/utils.rs b/src/utils.rs index 6b3f7f3..334d282 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -32,7 +32,7 @@ impl Logger } } -pub async fn send_msg(ctx: Context, channel: ChannelId, msg: &str) -> Option +pub async fn send_msg(ctx: Context, channel: ChannelId, msg: impl std::fmt::Display) -> Option { match channel.say(&ctx.http, msg).await