reaction_roles.rs 285 Bytes
Newer Older
tec's avatar
tec committed
1 2 3 4 5 6 7 8 9 10

#[derive(Debug, Clone)]
struct ReactionMapping {
    mapping: HashMap<serenity::model::id::EmojiId, serenity::model::id::RoleId>,
}

lazy_static! {
    static ref REACTIONS_CACHE: Mutex<HashMap<serenity::model::id::MessageId, ReactionMapping>> =
        Mutex::new(HashMap::new());
}