{{~ # Avatar ~}}
Avatar
{{~ # Author name and timestamp ~}} {{~ userColor = TryGetUserColor MessageGroup.Author | FormatColorRgb ~}} {{ (TryGetUserNick MessageGroup.Author ?? MessageGroup.Author.Name) | html.escape }} {{~ # Bot tag ~}} {{~ if MessageGroup.Author.IsBot ~}} BOT {{~ end ~}} {{ MessageGroup.Timestamp | FormatDate | html.escape }} {{~ # Messages ~}} {{~ for message in MessageGroup.Messages ~}}
{{~ # Content ~}} {{~ if message.Content ~}}
{{- message.Content | FormatMarkdown -}} {{- # Edited timestamp -}} {{- if message.EditedTimestamp -}} {{-}}(edited){{-}} {{- end -}}
{{~ end ~}} {{~ # Attachments ~}} {{~ for attachment in message.Attachments ~}} {{~ end ~}} {{~ # Embeds ~}} {{~ for embed in message.Embeds ~}}
{{~ if embed.Color ~}}
{{~ else ~}}
{{~ end ~}}
{{~ # Author ~}} {{~ if embed.Author ~}}
{{~ if embed.Author.IconUrl ~}} Author icon {{~ end ~}} {{~ if embed.Author.Name ~}} {{~ if embed.Author.Url ~}} {{ embed.Author.Name | html.escape }} {{~ else ~}} {{ embed.Author.Name | html.escape }} {{~ end ~}} {{~ end ~}}
{{~ end ~}} {{~ # Title ~}} {{~ if embed.Title ~}}
{{~ if embed.Url ~}}
{{ embed.Title | FormatEmbedMarkdown }}
{{~ else ~}}
{{ embed.Title | FormatEmbedMarkdown }}
{{~ end ~}}
{{~ end ~}} {{~ # Description ~}} {{~ if embed.Description ~}}
{{ embed.Description | FormatEmbedMarkdown }}
{{~ end ~}} {{~ # Fields ~}} {{~ if embed.Fields | array.size > 0 ~}}
{{~ for field in embed.Fields ~}}
{{~ if field.Name ~}}
{{ field.Name | FormatEmbedMarkdown }}
{{~ end ~}} {{~ if field.Value ~}}
{{ field.Value | FormatEmbedMarkdown }}
{{~ end ~}}
{{~ end ~}}
{{~ end ~}}
{{~ # Thumbnail ~}} {{~ if embed.Thumbnail ~}} {{~ end ~}}
{{~ # Image ~}} {{~ if embed.Image ~}} {{~ end ~}} {{~ # Footer ~}} {{~ if embed.Footer || embed.Timestamp ~}} {{~ end ~}}
{{~ end ~}} {{~ # Reactions ~}} {{~ if message.Reactions | array.size > 0 ~}}
{{~ for reaction in message.Reactions ~}}
{{ reaction.Emoji.Name }} {{ reaction.Count }}
{{~ end ~}}
{{~ end ~}}
{{~ end ~}}