mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-20 01:08:55 +00:00
Add beatmapset option to leaderboard command
This commit is contained in:
parent
4a2f81c3d3
commit
d7ee5d896d
1 changed files with 2 additions and 1 deletions
|
@ -519,6 +519,7 @@ async fn ranks<U: HasOsuEnv>(
|
||||||
async fn leaderboard<U: HasOsuEnv>(
|
async fn leaderboard<U: HasOsuEnv>(
|
||||||
ctx: CmdContext<'_, U>,
|
ctx: CmdContext<'_, U>,
|
||||||
#[description = "The link or shortlink of the map"] map: Option<String>,
|
#[description = "The link or shortlink of the map"] map: Option<String>,
|
||||||
|
#[description = "Load the scoreboard for the entire beatmapset"] beatmapset: Option<bool>,
|
||||||
#[description = "Sort scores by"] sort: Option<server_rank::OrderBy>,
|
#[description = "Sort scores by"] sort: Option<server_rank::OrderBy>,
|
||||||
#[description = "Reverse the ordering"] reverse: Option<bool>,
|
#[description = "Reverse the ordering"] reverse: Option<bool>,
|
||||||
#[description = "Include unranked scores"] unranked: Option<bool>,
|
#[description = "Include unranked scores"] unranked: Option<bool>,
|
||||||
|
@ -530,7 +531,7 @@ async fn leaderboard<U: HasOsuEnv>(
|
||||||
let style = style.unwrap_or_default();
|
let style = style.unwrap_or_default();
|
||||||
let order = sort.unwrap_or_default();
|
let order = sort.unwrap_or_default();
|
||||||
|
|
||||||
let embed = parse_map_input(ctx.channel_id(), env, map, mode, None).await?;
|
let embed = parse_map_input(ctx.channel_id(), env, map, mode, beatmapset).await?;
|
||||||
|
|
||||||
ctx.defer().await?;
|
ctx.defer().await?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue