From 19c8ad8c8038e8d65b9b257d96330678ad53958c Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Fri, 12 Jun 2020 17:41:46 -0500 Subject: [PATCH] Moved countdown link to description field and used a named link --- src/discord/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/discord/mod.rs b/src/discord/mod.rs index adfda21..9251946 100644 --- a/src/discord/mod.rs +++ b/src/discord/mod.rs @@ -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) }) })?;