Merge pull request 'kldalkjdhsdadsdad' (#13) from hotfix/fucking-field-limits-ffs into main
Badgey Deployment / build (push) Successful in 6m22s Details
Badgey Deployment / deploy (BADGEY) (push) Successful in 7s Details
Badgey Deployment / deploy (M5_COMPUTER) (push) Successful in 7s Details

Reviewed-on: #13
This commit is contained in:
Xyon 2024-10-19 16:07:02 +00:00
commit 5a2f32733c
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ async fn rank(ctx: ManifoldContext<'_>) -> ManifoldResult<()> {
async fn leaderboard(ctx: ManifoldContext<'_>) -> ManifoldResult<()> { async fn leaderboard(ctx: ManifoldContext<'_>) -> ManifoldResult<()> {
let reply_handle = ctx.reply("Retrieving leaderboard, please stand by...".to_string()).await?; let reply_handle = ctx.reply("Retrieving leaderboard, please stand by...".to_string()).await?;
let entries_per_page = 7; // Maximum due to limitation on fields per embed let entries_per_page = 5; // Maximum due to limitation on fields per embed
let mut pages = Vec::<CreateEmbed>::new(); let mut pages = Vec::<CreateEmbed>::new();
let leaderboard = Xp::get_leaderboard(&ctx.data().database)?; let leaderboard = Xp::get_leaderboard(&ctx.data().database)?;
let total = leaderboard.len(); let total = leaderboard.len();