Fix member avatar in log channel message
This commit is contained in:
parent
ffa6faddd2
commit
c1d17c2944
@ -66,7 +66,7 @@ namespace PluralKit.Bot {
|
|||||||
// TODO: pronouns in ?-reacted response using this card
|
// TODO: pronouns in ?-reacted response using this card
|
||||||
var timestamp = DiscordUtils.SnowflakeToInstant(messageId);
|
var timestamp = DiscordUtils.SnowflakeToInstant(messageId);
|
||||||
return new DiscordEmbedBuilder()
|
return new DiscordEmbedBuilder()
|
||||||
.WithAuthor($"#{channel.Name}: {member.Name}", member.AvatarUrl)
|
.WithAuthor($"#{channel.Name}: {member.Name}", iconUrl: member.AvatarUrl)
|
||||||
.WithDescription(content?.NormalizeLineEndSpacing())
|
.WithDescription(content?.NormalizeLineEndSpacing())
|
||||||
.WithFooter($"System ID: {system.Hid} | Member ID: {member.Hid} | Sender: {sender.Username}#{sender.Discriminator} ({sender.Id}) | Message ID: {messageId} | Original Message ID: {originalMsgId}")
|
.WithFooter($"System ID: {system.Hid} | Member ID: {member.Hid} | Sender: {sender.Username}#{sender.Discriminator} ({sender.Id}) | Message ID: {messageId} | Original Message ID: {originalMsgId}")
|
||||||
.WithTimestamp(timestamp.ToDateTimeOffset())
|
.WithTimestamp(timestamp.ToDateTimeOffset())
|
||||||
|
Loading…
Reference in New Issue
Block a user