make some adjustments to the discord embed format

This commit is contained in:
2025-10-25 22:24:27 +02:00
parent 500a44ee99
commit fe9f00c014
2 changed files with 3 additions and 5 deletions
-1
View File
@@ -1 +0,0 @@
-# **Hinweis:** Die aus dem RSS-Feed von zuginfo.nrw stammenden Beginn- und Endzeiten scheinen oft inakkurat zu sein und sind daher mit Vorsicht zu genießen.
+3 -4
View File
@@ -121,13 +121,12 @@ impl DisbahnClient {
.thumbnail(icon_url)
.colour(Self::icon_name_to_colour(icon))
.description(description)
.field("Beginn:", format!("<t:{validity_begin}:F>"), true)
.field("Ende:", format!("<t:{validity_end}:F>"), true)
.field("", include_str!("hint.txt"), false)
.field("Beginn:", format!("<t:{validity_begin}:f>"), true)
.field("Ende:", format!("<t:{validity_end}:f>"), true)
.timestamp(pub_datetime)
.footer(
CreateEmbedFooter::new(
"Quelle: https://zuginfo.nrw/ \u{2013} Alle Angaben ohne Gewehr \u{1F52B}",
"Quelle: zuginfo.nrw \u{2013} Alle Angaben ohne Gewehr \u{1F52B}",
)
.icon_url(FOOTER_ICON_URL),
);