Moved countdown link to description field and used a named link

master
Joey Hines 2020-06-12 17:41:46 -05:00
parent 9179955ff0
commit 19c8ad8c80
1 changed files with 2 additions and 2 deletions

View File

@ -103,9 +103,10 @@ pub fn send_event_msg(
e.title(event.event_name.clone())
.color(Colour::PURPLE)
.description(format!(
"**{}**\n{}\n\nReact with {} below to receive event reminders!",
"**{}**\n{}\n\n[Click Here For A Countdown]({})\n\nReact with {} below to receive event reminders!",
native_time.format("%A, %B %d @ %I:%M %P %t %Z"),
event.event_desc,
get_countdown_link(&event.event_name, &utc_time),
INTERESTED_EMOJI
))
.thumbnail(event.thumbnail_link.clone())
@ -113,7 +114,6 @@ pub fn send_event_msg(
.timestamp(utc_time.to_rfc3339())
.field("Location", &event.event_loc, true)
.field("Organizer", &event.organizer, true)
.field("Countdown", get_countdown_link(&event.event_name, &utc_time), false)
})
})?;