From 6c39b7549b6fe3a7dd1ed3963a118d59fa92934d Mon Sep 17 00:00:00 2001 From: Ske Date: Thu, 31 Oct 2019 21:14:01 +0100 Subject: [PATCH] Fix message querying actually for real --- PluralKit.Bot/Services/EmbedService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Services/EmbedService.cs b/PluralKit.Bot/Services/EmbedService.cs index 2e8ebb83..6f635bbe 100644 --- a/PluralKit.Bot/Services/EmbedService.cs +++ b/PluralKit.Bot/Services/EmbedService.cs @@ -181,7 +181,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) + .WithImageUrl(serverMsg?.Attachments?.FirstOrDefault()?.Url) .AddField("System", msg.System.Name != null ? $"{msg.System.Name} (`{msg.System.Hid}`)" : $"`{msg.System.Hid}`", true) .AddField("Member", memberStr, true)