Add leaderboard command and XP winning system

This commit is contained in:
2025-08-21 02:14:56 -03:00
parent 4563c49245
commit 0318f002fc
11 changed files with 281 additions and 36 deletions
+7
View File
@@ -1,6 +1,7 @@
use std::fmt::Debug;
use async_trait::async_trait;
use deadpool_redis::{cluster::PoolError, redis::RedisError};
use thiserror::Error;
use twilight_http::response::DeserializeBodyError;
@@ -36,6 +37,12 @@ pub enum CommandError {
#[error("The cache's state was inconsistent.")]
CacheStateInconsistent,
#[error(transparent)]
RedisPoolFailed(#[from] PoolError),
#[error(transparent)]
RedisFailed(#[from] RedisError),
}
#[async_trait]