[AB-196] adding templates for command confirmations

This commit is contained in:
Sheldan
2021-09-27 00:23:19 +02:00
parent a4aa0ddb6c
commit 93b0bf33ca
18 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{
<#include "abstracto_color">,
"metaConfig" : {
"preventEmptyEmbed": "true",
"ephemeral": true
},
"description": "<@safe_include "command_aborted_notification_text"/>"
}

View File

@@ -0,0 +1,23 @@
{
<#include "assignable_place_color">,
<#assign text><#include "${commandName}_confirmation"></#assign>
"description": "${text?json_string}",
"buttons": [
{
"label": "<@safe_include "command_confirmation_message_confirm_field_title"/>",
"id": "${confirmButtonId}",
"buttonStyle": "secondary",
"metaConfig": {
"persistCallback": false
}
},
{
"label": "<@safe_include "command_confirmation_message_abort_field_title"/>",
"id": "${abortButtonId}",
"buttonStyle": "secondary",
"metaConfig": {
"persistCallback": false
}
}
]
}