mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 01:00:49 +00:00
osu: add /s/{id} links to the link parser, support beatmapsets with mode override
This commit is contained in:
parent
c28cad0718
commit
84b152adf6
5 changed files with 40 additions and 15 deletions
|
@ -709,7 +709,10 @@ async fn parse_map_input(
|
|||
let output = if beatmapset == Some(true) {
|
||||
match output {
|
||||
EmbedType::Beatmap(beatmap, _, _) => {
|
||||
let beatmaps = env.beatmaps.get_beatmapset(beatmap.beatmapset_id).await?;
|
||||
let beatmaps = env
|
||||
.beatmaps
|
||||
.get_beatmapset(beatmap.beatmapset_id, mode)
|
||||
.await?;
|
||||
EmbedType::Beatmapset(beatmaps)
|
||||
}
|
||||
bm @ EmbedType::Beatmapset(_) => bm,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue