Compare commits
2 Commits
bb13e8fab7
...
5a2f32733c
| Author | SHA1 | Date |
|---|---|---|
|
|
5a2f32733c | |
|
|
999cef6dcd |
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue