Save on not calculating pp in beatmap info

This commit is contained in:
Natsu Kagami 2021-02-17 05:07:25 +09:00 committed by Natsu Kagami
parent 35634550dd
commit abc0fc5f73
5 changed files with 39 additions and 19 deletions

View file

@ -610,7 +610,7 @@ pub async fn last(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult
.unwrap()
.get_beatmap(b.beatmap_id)
.await?
.get_info_with(m.to_oppai_mode(), mods)
.get_possible_pp_with(m.to_oppai_mode(), mods)
.ok();
msg.channel_id
.send_message(&ctx, |f| {