Include attachment image in message card
This commit is contained in:
parent
3369a06c4e
commit
c639e9ba1e
@ -178,6 +178,7 @@ namespace PluralKit.Bot {
|
|||||||
var eb = new EmbedBuilder()
|
var eb = new EmbedBuilder()
|
||||||
.WithAuthor(msg.Member.Name, msg.Member.AvatarUrl)
|
.WithAuthor(msg.Member.Name, msg.Member.AvatarUrl)
|
||||||
.WithDescription(serverMsg?.Content ?? "*(message contents deleted or inaccessible)*")
|
.WithDescription(serverMsg?.Content ?? "*(message contents deleted or inaccessible)*")
|
||||||
|
.WithImageUrl(serverMsg?.Attachments?.First()?.Url)
|
||||||
.AddField("System",
|
.AddField("System",
|
||||||
msg.System.Name != null ? $"{msg.System.Name} (`{msg.System.Hid}`)" : $"`{msg.System.Hid}`", true)
|
msg.System.Name != null ? $"{msg.System.Name} (`{msg.System.Hid}`)" : $"`{msg.System.Hid}`", true)
|
||||||
.AddField("Member", memberStr, true)
|
.AddField("Member", memberStr, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user