From 5b738af0a69e4f232fc6fe257943717c873d0d7e Mon Sep 17 00:00:00 2001 From: Agatha Rose Date: Sun, 22 Nov 2020 23:20:06 +0200 Subject: [PATCH] Make pinned message formatting more condensed --- src/commands/pinned.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/commands/pinned.rs b/src/commands/pinned.rs index 1f0bf8f..c73d93d 100644 --- a/src/commands/pinned.rs +++ b/src/commands/pinned.rs @@ -42,14 +42,15 @@ async fn pinned(ctx: &Context, message: &Message, mut args: Args) -> CommandResu guild_id, &pinned[idx].channel_id, &pinned[idx].id ); - // TODO: change link formatting let _ = message .channel_id .send_message(&ctx.http, |m| { m.embed(|e| { e.title(format!("Pinned message #{}", idx + 1)) - .description(&pinned[idx].content) - .field("🔗 link", format!("[original message]({})", msg_link), true) + .description(&format!( + "{}\n[**🔗 link**]({})", + &pinned[idx].content, msg_link + )) .timestamp(&pinned[idx].timestamp); e.author(|a| { a.name(&pinned[idx].author.name)