diff options
| author | Cara Salter <cara@devcara.com> | 2022-01-07 13:39:14 -0500 | 
|---|---|---|
| committer | Cara Salter <cara@devcara.com> | 2022-01-07 13:39:14 -0500 | 
| commit | 6bc33b93eb5d55fb855803b0bf8cf7658a60e2b1 (patch) | |
| tree | c2937ef0538fa9e380cd7791e17498c105de57af | |
| parent | 3f9376a46efeb53b494a8b5272fc15be6ca5869a (diff) | |
| download | glitch-ng-6bc33b93eb5d55fb855803b0bf8cf7658a60e2b1.tar.gz glitch-ng-6bc33b93eb5d55fb855803b0bf8cf7658a60e2b1.zip  | |
osu: Add link to beatmap
| -rw-r--r-- | src/commands/osu.rs | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/osu.rs b/src/commands/osu.rs index 2b3961f..28d3cb3 100644 --- a/src/commands/osu.rs +++ b/src/commands/osu.rs @@ -114,6 +114,7 @@ struct OsuBeatMap {      pub passcount: u32,      pub playcount: u32,      pub beatmapset: OsuBeatMapSet, +    pub url: String,  }  #[derive(Deserialize, Debug, Clone)] @@ -152,7 +153,7 @@ pub async fn osubm(ctx: Context<'_>,          m.embed(|e| {              e.title(format!("osu! Beatmap: {} by {}", res.beatmapset.title, res.beatmapset.creator));              e.image(res.beatmapset.covers.list2); -            e.description(format!("**Length:** {} **BPM:** {}\n**Difficulty:** {}:star:", res.total_length, res.bpm, res.difficulty_rating)); +            e.description(format!("**Link:** {}\n**Length:** {} **BPM:** {}\n**Difficulty:** {}:star:", res.url, res.total_length, res.bpm, res.difficulty_rating));              e.footer(|f| {                  f.text(format!("BM ID {} | BM Set ID {}\nCreated {}", res.id, res.beatmapset.id, res.beatmapset.submitted_date));                  f  | 
