diff --git a/ModCore/Listeners/StarboardListeners.cs b/ModCore/Listeners/StarboardListeners.cs index 89c9988..6ccb3aa 100644 --- a/ModCore/Listeners/StarboardListeners.cs +++ b/ModCore/Listeners/StarboardListeners.cs @@ -528,7 +528,7 @@ private static DiscordMessageBuilder buildStarboardMessage(DiscordMessage source foreach (var img in imageFiles.Skip(1)) { - imageEmbeds.Add(new DiscordEmbedBuilder().WithUrl("https://github.com/Naamloos/ModCore").WithImageUrl(img.Url)); + imageEmbeds.Add(new DiscordEmbedBuilder(embed).WithUrl("https://github.com/Naamloos/ModCore").WithImageUrl(img.Url)); } } @@ -543,9 +543,12 @@ private static DiscordMessageBuilder buildStarboardMessage(DiscordMessage source $"{refContent} {(sourceMessage.ReferencedMessage.Attachments.Count() > 0 ? $"_<{sourceMessage.ReferencedMessage.Attachments.Count()} file(s)>_" : "")}"; } - imageEmbeds.Add(embed); + var embeds = new List(); + embeds.Add(embed.Build()); + embeds.AddRange(imageEmbeds.Select(x => x.Build())); + var messageBuilder = new DiscordMessageBuilder() - .AddEmbeds(imageEmbeds.Select(x => x.Build())) + .AddEmbeds(embeds) .WithContent($"{emoji} {count} {emotename} in {sourceMessage.Channel.Mention}"); messageBuilder.AddComponents(new DiscordLinkButtonComponent(sourceMessage.JumpLink.ToString(), "Go to message"));