diff --git a/youmubot-osu/src/discord/interaction.rs b/youmubot-osu/src/discord/interaction.rs index 54698d2..0dc4caf 100644 --- a/youmubot-osu/src/discord/interaction.rs +++ b/youmubot-osu/src/discord/interaction.rs @@ -400,7 +400,7 @@ pub fn handle_lb_button<'a>( .create_followup( &ctx, CreateInteractionResponseFollowup::new().content(format!( - "⌛ Loading top scores on beatmap `{}`...", + "Here are the top scores on beatmap `{}`!", bm.short_link(Mods::NOMOD) )), ) diff --git a/youmubot-osu/src/discord/server_rank.rs b/youmubot-osu/src/discord/server_rank.rs index 5272a19..7f56b57 100644 --- a/youmubot-osu/src/discord/server_rank.rs +++ b/youmubot-osu/src/discord/server_rank.rs @@ -548,6 +548,7 @@ pub async fn display_rankings_table( const ITEMS_PER_PAGE: usize = 5; let total_len = scores.len(); let total_pages = (total_len + ITEMS_PER_PAGE - 1) / ITEMS_PER_PAGE; + let header = Arc::new(to.content.clone()); paginate_with_first_message( paginate_from_fn(move |page: u8, ctx: &Context, m: &mut Message| { @@ -558,6 +559,7 @@ pub async fn display_rankings_table( } let scores = scores[start..end].to_vec(); let bm = (bm.0.clone(), bm.1); + let header = header.clone(); Box::pin(async move { const SCORE_HEADERS: [&str; 8] = ["#", "Score", "Mods", "Rank", "Acc", "Combo", "Miss", "User"]; @@ -608,6 +610,7 @@ pub async fn display_rankings_table( OrderBy::Score => table_formatting(&SCORE_HEADERS, &ALIGNS, score_arr), }; let content = MessageBuilder::new() + .push_line(header.as_ref()) .push_line(score_table) .push_line(format!( "Page **{}**/**{}**. Not seeing your scores? Run `osu check` to update.",