mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-28 19:35:18 +00:00
[AB-296] adding templates for interaction based exceptions
adding button to message embed for deletion adding exception for remove embedded message exception
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=member/>,
|
||||
<#include "exception_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true",
|
||||
"ephemeral": true
|
||||
},
|
||||
<#assign effectiveTemplate=template>
|
||||
<#if effectiveTemplate?has_content>
|
||||
<#if effectiveTemplate.templateModel?has_content>
|
||||
<#assign model=effectiveTemplate.templateModel/>
|
||||
"description": "<@safe_include "${effectiveTemplate.templateName}"/>"
|
||||
</#if>
|
||||
<#elseif throwable.localizedMessage?has_content>
|
||||
"description": "${throwable.localizedMessage?json_string}"
|
||||
<#else>
|
||||
"description": "${throwable.class.simpleName?json_string}"
|
||||
</#if>
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "link_embed_removal_not_allowed_exception_text">
|
||||
@@ -41,5 +41,17 @@
|
||||
}
|
||||
</#if>
|
||||
],
|
||||
<#if useButton>
|
||||
"buttons": [
|
||||
{
|
||||
"label": "<@safe_include "message_embed_button_delete"/>",
|
||||
"id": "${buttonConfigModel.buttonId}",
|
||||
"buttonStyle": "danger",
|
||||
"metaConfig": {
|
||||
"persistCallback": false
|
||||
}
|
||||
}
|
||||
],
|
||||
</#if>
|
||||
"timeStamp": "${embeddedMessage.timeCreated}"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
You are not allowed to remove the embedded message.
|
||||
@@ -0,0 +1 @@
|
||||
Delete
|
||||
Reference in New Issue
Block a user