From 460624c7fe687c4e77377fa482efb3db1095e278 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Thu, 20 Feb 2025 18:14:58 +0100 Subject: [PATCH] Add beatmapset option to leaderboard command --- youmubot-osu/src/discord/commands.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youmubot-osu/src/discord/commands.rs b/youmubot-osu/src/discord/commands.rs index 478c31e..1bad469 100644 --- a/youmubot-osu/src/discord/commands.rs +++ b/youmubot-osu/src/discord/commands.rs @@ -519,6 +519,7 @@ async fn ranks( async fn leaderboard( ctx: CmdContext<'_, U>, #[description = "The link or shortlink of the map"] map: Option, + #[description = "Load the scoreboard for the entire beatmapset"] beatmapset: Option, #[description = "Sort scores by"] sort: Option, #[description = "Reverse the ordering"] reverse: Option, #[description = "Include unranked scores"] unranked: Option, @@ -530,7 +531,7 @@ async fn leaderboard( let style = style.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?;