From c639e9ba1e9cebeb2277627e96d1c86cd1da82b3 Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 28 Oct 2019 17:02:59 +0100 Subject: [PATCH] Include attachment image in message card --- PluralKit.Bot/Services/EmbedService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PluralKit.Bot/Services/EmbedService.cs b/PluralKit.Bot/Services/EmbedService.cs index 95489ab2..f7ef5aec 100644 --- a/PluralKit.Bot/Services/EmbedService.cs +++ b/PluralKit.Bot/Services/EmbedService.cs @@ -178,6 +178,7 @@ namespace PluralKit.Bot { var eb = new EmbedBuilder() .WithAuthor(msg.Member.Name, msg.Member.AvatarUrl) .WithDescription(serverMsg?.Content ?? "*(message contents deleted or inaccessible)*") + .WithImageUrl(serverMsg?.Attachments?.First()?.Url) .AddField("System", msg.System.Name != null ? $"{msg.System.Name} (`{msg.System.Hid}`)" : $"`{msg.System.Hid}`", true) .AddField("Member", memberStr, true)