63 lines
2.2 KiB
Arturo
63 lines
2.2 KiB
Arturo
{{ if message.type === 7 }}
|
|
{{ message.author.global_name ?? message.author.username }} joined {{ guildInfo.name }}.<br>
|
|
{{ /if }}
|
|
|
|
{{ if message.content }}
|
|
{{@ message.content.replace(/\n/g, '<br>') }}<br>
|
|
{{ /if }}
|
|
|
|
{{ if message.attachments }}
|
|
{{ each message.attachments a }}
|
|
<img src="{{ a.proxy_url }}"><br>
|
|
{{ /each }}
|
|
{{ /if }}
|
|
|
|
{{ if message.sticker_items }}
|
|
{{ each message.sticker_items sticker }}
|
|
{{ if sticker.format_type < 3 }}
|
|
<img src="https://cdn.discordapp.com/stickers/{{ sticker.id }}.png"
|
|
{{ else if sticker.format_type === 4 }}
|
|
<img src="https://media.discordapp.net/stickers/{{ sticker.id }}.gif"
|
|
{{ /if }}
|
|
alt="{{ sticker.name }}"><br>
|
|
{{ /each }}
|
|
{{ /if }}
|
|
|
|
{{ if message.embeds }}
|
|
{{ each message.embeds e }}
|
|
{{ if e.type === 'article' }}
|
|
{{ if e.url }}
|
|
<a href="{{ e.url }}">{{ e.title || e.url }}</a>
|
|
{{ if e.description }}<br>{{@ e.description.replace(/\n/g, '<br>') }}{{ /if }}
|
|
<br>
|
|
{{ /if }}
|
|
{{ if e.thumbnail }}<img src="{{ e.thumbnail.proxy_url }}">{{ /if }}
|
|
|
|
{{ else if e.type === 'gifv' }}
|
|
<video controls poster="{{ e.thumbnail.proxy_url }}">
|
|
<source src="{{ e.video.proxy_url }}" type="video/mp4">
|
|
</video>
|
|
|
|
{{ else if e.type === 'image' }}
|
|
<img src="{{ e.thumbnail.proxy_url }}">
|
|
|
|
{{ else if e.type === 'rich' }}
|
|
{{ if e.author }}<a href="{{ e.author.url }}">{{ e.author.name }}</a><br>{{ /if }}
|
|
<a href="{{ e.url }}">{{ e.title || e.url }}</a>
|
|
{{ if e.description }}<br>{{@ e.description.replace(/\n/g, '<br>') }}{{ /if }}
|
|
<br>
|
|
{{ if e.image }}<img src="{{ e.image.proxy_url }}">{{ /if }}
|
|
|
|
{{ else if e.type === 'video' }}
|
|
{{ if e.url }}
|
|
<a href="{{ e.url }}">{{ e.title }}</a>
|
|
{{ if e.description }}<br>{{@ e.description.replace(/\n/g, '<br>') }}{{ /if }}
|
|
<br>
|
|
{{ /if }}
|
|
{{ if e.thumbnail }}<img src="{{ e.thumbnail.proxy_url }}">{{ /if }}
|
|
|
|
{{ /if }}
|
|
<br>
|
|
{{ /each }}
|
|
{{ /if }}
|