From 06d13ec81082f412930c10a2c82f6371b6c78db9 Mon Sep 17 00:00:00 2001 From: jellywx Date: Mon, 23 Nov 2020 00:06:46 +0000 Subject: [PATCH] facelift --- src/commands/moderation_cmds.rs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/commands/moderation_cmds.rs b/src/commands/moderation_cmds.rs index 544cb4b..c20ace0 100644 --- a/src/commands/moderation_cmds.rs +++ b/src/commands/moderation_cmds.rs @@ -132,7 +132,22 @@ async fn timezone(ctx: &Context, msg: &Message, args: String) { .replacen("{timezone}", &user_data.timezone, 1) .replacen("{time}", &now.format("%H:%M").to_string(), 1); - let _ = msg.channel_id.say(&ctx, content).await; + let _ = + msg.channel_id + .send_message(&ctx, |m| { + m.embed(|e| { + e.title(lm.get(&user_data.language, "timezone/set_p_title")) + .description(content) + .color(*THEME_COLOR) + .footer(|f| { + f.text( + lm.get(&user_data.language, "timezone/footer") + .replacen("{timezone}", &user_data.timezone, 1), + ) + }) + }) + }) + .await; } Err(_) => {