Use mapset ID for download links (#19)

Beatmapset download links use beatmapset ID

Beatmap download links use beatmapset ID
This commit is contained in:
茜・バタフライ 2020-04-02 16:39:35 +00:00 committed by Natsu Kagami
parent feac1713c2
commit 4069270213

View file

@ -73,7 +73,7 @@ pub fn beatmap_embed<'a>(b: &'_ Beatmap, m: Mode, c: &'a mut CreateEmbed) -> &'a
.description(
MessageBuilder::new()
.push({
let link = format!("https://osu.ppy.sh/beatmapsets/{}/download", b.beatmap_id);
let link = format!("https://osu.ppy.sh/beatmapsets/{}/download", b.beatmapset_id);
format!(
"Download: [[Link]]({}) [[No Video]]({}?noVideo=1)",
link, link
@ -123,7 +123,7 @@ pub fn beatmapset_embed<'a>(
.description(
MessageBuilder::new()
.push_line({
let link = format!("https://osu.ppy.sh/beatmapsets/{}/download", b.beatmap_id);
let link = format!("https://osu.ppy.sh/beatmapsets/{}/download", b.beatmapset_id);
format!(
"Download: [[Link]]({}) [[No Video]]({}?noVideo=1)",
link, link