aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-01-07 13:39:14 -0500
committerCara Salter <cara@devcara.com>2022-01-07 13:39:14 -0500
commit6bc33b93eb5d55fb855803b0bf8cf7658a60e2b1 (patch)
treec2937ef0538fa9e380cd7791e17498c105de57af /src/commands
parent3f9376a46efeb53b494a8b5272fc15be6ca5869a (diff)
downloadglitch-ng-6bc33b93eb5d55fb855803b0bf8cf7658a60e2b1.tar.gz
glitch-ng-6bc33b93eb5d55fb855803b0bf8cf7658a60e2b1.zip
osu: Add link to beatmap
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/osu.rs3
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