{#if tagSelectorModal} {/if}
#ticket-{ticketId}
{#each messages as message}
handleAvatarLoadError(e, message.author.id)} alt="Avatar"/>
{message.author.global_name || message.author.username} {new Date() - new Date(message.timestamp) < 86400000 ? getRelativeTime(new Date(message.timestamp)) : new Date(message.timestamp).toLocaleString()}
{#if message.content?.length > 0} {message.content} {/if} {#if message.embeds?.length > 0}
{#each message.embeds.filter(e => 'color' in e) as embed}
{#if embed.title} {embed.title} {/if} {#if embed.description} {embed.description} {/if} {#if embed.fields && embed.fields.length > 0}
{#each embed.fields as field}
{field.name} {field.value}
{/each}
{/if} {#if embed.image && embed.image.proxy_url} Embed Image {/if}
{/each}
{/if} {#if message.attachments?.length > 0}
{#each message.attachments.filter(a => isImage(a.filename)) as attachment} {@const proxyUrl = attachment.proxy_url.replaceAll("\u0026", "&")} {attachment.filename} {/each} {#each message.attachments.filter(a => !isImage(a.filename)) as attachment} {@const directUrl = attachment.url.replaceAll("\u0026", "&")} {@const proxyUrl = attachment.proxy_url.replaceAll("\u0026", "&")}
{/each}
{/if}
{/each}
{#if isPremium}
{/if}