mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-03-03 07:24:47 +00:00
[AB-196] adding templates for command confirmations
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{
|
||||
<#include "abstracto_color">,
|
||||
"metaConfig" : {
|
||||
"preventEmptyEmbed": "true",
|
||||
"ephemeral": true
|
||||
},
|
||||
"description": "<@safe_include "command_aborted_notification_text"/>"
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user