summaryrefslogtreecommitdiff
path: root/src/storage/reactboard.rs
blob: 496739ca6091ea7a1e12d16c0dfaa4e661544685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use poise::serenity_prelude::{ChannelId, MessageId};
use redis_macros::{FromRedisValue, ToRedisArgs};
use serde::{Deserialize, Serialize};

#[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,
}