Remove the log on every reaction event

main
Joey Pollack 2 years ago
parent 8714012462
commit b60a412090

@ -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;

@ -32,7 +32,7 @@ impl Logger
}
}
pub async fn send_msg(ctx: Context, channel: ChannelId, msg: &str) -> Option<Message>
pub async fn send_msg(ctx: Context, channel: ChannelId, msg: impl std::fmt::Display) -> Option<Message>
{
match channel.say(&ctx.http, msg).await

Loading…
Cancel
Save