diff --git a/src/main.rs b/src/main.rs index 2223ff21a090877e3ca1ebd59fb126e86e48c166..2729df1b811a3460a68ad081eab8a21ece92d502 100644 --- a/src/main.rs +++ b/src/main.rs @@ -331,6 +331,7 @@ fn create_motion(ctx: &Context, msg: &Message, topic: &str) { embed.description(desc.build()); embed.field("Status", "Under Consideration", true); embed.field("Votes", "For: 0\nAgainst: 0\nAbstain: 0", true); + embed.timestamp(msg.timestamp.to_rfc3339()); embed }); m.reactions(vec![ @@ -372,6 +373,7 @@ fn create_poll(ctx: &Context, msg: &Message, topic: &str) { desc.mention(&msg.author); desc.push(" wants to know what you think."); embed.description(desc.build()); + embed.timestamp(msg.timestamp.to_rfc3339()); embed }); m.reactions(vec![APPROVE_REACT, DISAPPROVE_REACT, UNSURE_REACT]); @@ -514,6 +516,11 @@ fn update_motion( ), true, ); + e.timestamp( + old_embed + .timestamp + .expect("Expected embed to have timestamp"), + ); e }) }) {