Unverified Commit 6525c9ff authored by tec's avatar tec

Add timestamp to embeds

parent 6f800154
......@@ -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
})
}) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment