{#each message.embeds.filter(e => 'color' in e) as embed}
{/each}
{/if}
{#if message.attachments?.length > 0}
{#if embed.title}
{embed.title}
{/if}
{#if embed.description}
{embed.description}
{/if}
{#if embed.fields && embed.fields.length > 0}
{/if}
{#each embed.fields as field}
{/if}
{#if embed.image && embed.image.proxy_url}
{field.name}
{field.value}
{/each}
{#each message.attachments.filter(a => isImage(a.filename)) as attachment}
{@const proxyUrl = attachment.proxy_url.replaceAll("\u0026", "&")}
{/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}