[AB-221] adding handling of deleted users or not available users to link embeds and starboard posts

This commit is contained in:
Sheldan
2021-04-04 23:52:18 +02:00
parent 046e71c46e
commit 0f94c231e7
4 changed files with 14 additions and 4 deletions

View File

@@ -0,0 +1 @@
"author": { "name": "<@safe_include "delete_user_name"/>", "avatar": "https://discord.com/assets/6debd47ed13483642cf09e832ed0bc1b.png" }

View File

@@ -1,6 +1,10 @@
{
<#if author??>
<#include "user_author">
<@user_author user=author/>,
<@user_author user=author/>
<#else>
<@safe_include "deleted_user_author"/>
</#if>,
<#include "abstracto_color">,
<#if embeddedMessage.content?has_content || embeddedMessage.embeds?size gt 0>
"description": "${embeddedMessage.content?json_string}

View File

@@ -1,6 +1,10 @@
{
<#if author??>
<#include "user_author">
<@user_author user=author/>,
<@user_author user=author/>
<#else>
<@safe_include "deleted_user_author"/>
</#if>,
<#include "abstracto_color">,
<#if message.content?has_content || message.embeds?size gt 0>
"description": "${message.content?json_string}

View File

@@ -0,0 +1 @@
Deleted user