add custom role management

This commit is contained in:
2024-12-08 01:08:33 -05:00
parent b0ec64171f
commit f4a06a7b17
11 changed files with 250 additions and 3 deletions

View File

@@ -7,6 +7,9 @@ use sqlx::PgConnection;
pub struct Data {
pub database: Arc<Mutex<PgConnection>>,
pub mentions: Arc<Mutex<HashMap<UserId, std::time::Instant>>>,
/// last time the user redeemed a daily
pub dailies: Arc<Mutex<HashMap<UserId, std::time::Instant>>>,
}
pub type Error = Box<dyn std::error::Error + Send + Sync>;