blob: 19453dfc444c7324ab02833b17ec3d2fefadc040 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use poise::serenity_prelude::{ChannelId, MessageId};
use redis_macros::{FromRedisValue, ToRedisArgs};
use serde::{Deserialize, Serialize};
pub const REACTBOARD_KEY: &str = "reactboard-v2";
#[derive(Clone, Debug, Serialize, Deserialize, FromRedisValue, ToRedisArgs)]
pub struct ReactBoardEntry {
pub original_message_id: MessageId,
pub reaction_count: u64,
// we need these to update our message with new interactions
pub posted_channel_id: ChannelId,
pub posted_message_id: MessageId,
}
|