1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use crate::error::Result;
use serenity::client::Context;
use serenity::http::Http;
use serenity::{async_trait, model::prelude::*};
#[async_trait]
pub trait EventDrivenMessage: Send + Sync {
fn is_frozen(&self) -> bool {
false
}
async fn update(&mut self, _http: &Http) -> Result<()> {
Ok(())
}
async fn on_deleted(&mut self, _ctx: &Context) -> Result<()> {
Ok(())
}
async fn on_reaction_add(&mut self, _ctx: &Context, _reaction: Reaction) -> Result<()> {
Ok(())
}
async fn on_reaction_remove(&mut self, _ctx: &Context, _reaction: Reaction) -> Result<()> {
Ok(())
}
}