|
|
|
@ -14,7 +14,7 @@ use std::time::Duration;
|
|
|
|
|
|
|
|
|
|
|
|
use serenity::async_trait;
|
|
|
|
use serenity::async_trait;
|
|
|
|
use serenity::prelude::*;
|
|
|
|
use serenity::prelude::*;
|
|
|
|
use serenity::model::channel::Message;
|
|
|
|
use serenity::model::channel::{Message, Reaction};
|
|
|
|
use serenity::model::gateway::Ready;
|
|
|
|
use serenity::model::gateway::Ready;
|
|
|
|
use serenity::model::id::GuildId;
|
|
|
|
use serenity::model::id::GuildId;
|
|
|
|
use serenity::http::Http;
|
|
|
|
use serenity::http::Http;
|
|
|
|
@ -45,6 +45,17 @@ impl EventHandler for Handler
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async fn reaction_add(&self, ctx: Context, add_reaction: Reaction)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
utils::Logger::log_message(ctx, &format!("reaction add event: {:#?}", add_reaction)).await;
|
|
|
|
|
|
|
|
// todo!()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async fn reaction_remove(&self, ctx: Context, removed_reaction: Reaction)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
utils::Logger::log_message(ctx, &format!("reaction removed event: {:#?}", removed_reaction)).await;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Set a handler to be called on the `ready` event. This is called when a
|
|
|
|
// Set a handler to be called on the `ready` event. This is called when a
|
|
|
|
// shard is booted, and a READY payload is sent by Discord. This payload
|
|
|
|
// shard is booted, and a READY payload is sent by Discord. This payload
|
|
|
|
// contains data like the current user's guild Ids, current user data,
|
|
|
|
// contains data like the current user's guild Ids, current user data,
|
|
|
|
|