{{~ # Metadata ~}}
{{ Model.Guild.Name | html.escape }} - {{ Model.Channel.Name | html.escape }}
{{~ # Styles ~}} {{~ # Local scripts ~}} {{~ # Syntax highlighting ~}}
{{~ # Info ~}}
{{ Model.Guild.Name | html.escape }}
{{ Model.Channel.Name | html.escape }}
{{~ if Model.Channel.Topic ~}}
{{ Model.Channel.Topic | html.escape }}
{{~ end ~}}
{{ Model.Messages | array.size | object.format "N0" }} messages
{{~ if Model.After || Model.Before ~}}
{{~ if Model.After && Model.Before ~}} Between {{ Model.After | FormatDate | html.escape }} and {{ Model.Before | FormatDate | html.escape }} {{~ else if Model.After ~}} After {{ Model.After | FormatDate | html.escape }} {{~ else if Model.Before ~}} Before {{ Model.Before | FormatDate | html.escape }} {{~ end ~}}
{{~ end ~}}
{{~ # Log ~}}
{{~ for group in Model.Messages | GroupMessages ~}}
{{~ # Avatar ~}}
{{~ # Author name and timestamp ~}}
{{ group.Author.Name | html.escape }}
{{~ # Bot tag ~}} {{~ if group.Author.IsBot ~}}
BOT
{{~ end ~}}
{{ group.Timestamp | FormatDate | html.escape }}
{{~ # Messages ~}} {{~ for message in group.Messages ~}}
{{~ # Content ~}} {{~ if message.Content ~}}
{{ message.Content | FormatMarkdown }}
{{~ # Edited timestamp ~}} {{~ if message.EditedTimestamp ~}}
(edited)
{{~ end ~}}
{{~ end ~}} {{~ # Attachments ~}} {{~ for attachment in message.Attachments ~}}
{{ # Image }} {{~ if attachment.IsImage ~}}
{{~ # Non-image ~}} {{~ else ~}} Attachment: {{ attachment.FileName }} ({{ attachment.FileSize }}) {{~ end ~}}
{{~ end ~}} {{~ # Embeds ~}} {{~ for embed in message.Embeds ~}}
{{~ # Author ~}} {{~ if embed.Author ~}}
{{~ if embed.Author.IconUrl ~}}
{{~ 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 | FormatMarkdown }}
{{~ else ~}}
{{ embed.Title | FormatMarkdown }}
{{~ end ~}}
{{~ end ~}} {{~ # Description ~}} {{~ if embed.Description ~}}
{{ embed.Description | FormatMarkdown }}
{{~ end ~}} {{~ # Fields ~}} {{~ if embed.Fields | array.size > 0 ~}}
{{~ for field in embed.Fields ~}}
{{~ if field.Name ~}}
{{ field.Name | FormatMarkdown }}
{{~ end ~}} {{~ if field.Value ~}}
{{ field.Value | FormatMarkdown }}
{{~ 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.Count }}
{{~ end ~}}
{{~ end ~}}
{{~ end ~}}
{{~ end ~}}