mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-09-15 19:14:01 +00:00
[AB-84] adding suggestion text, vote percentages and emotes to suggestion update message
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
<#if message?? && message.attachments?size gt 0>
|
<#if message?? && message.attachments?size gt 0>
|
||||||
"imageUrl": "${message.attachments[0].proxyUrl}",
|
"imageUrl": "${message.attachments[0].proxyUrl}",
|
||||||
</#if>
|
</#if>
|
||||||
|
"description": "<@safe_include "suggest_text_label"/>: ${text}",
|
||||||
"fields": [
|
"fields": [
|
||||||
<#if reason?has_content>
|
<#if reason?has_content>
|
||||||
{
|
{
|
||||||
@@ -14,11 +15,11 @@
|
|||||||
</#if>
|
</#if>
|
||||||
{
|
{
|
||||||
"name": "<@safe_include "suggestion_agreements_field_title"/>",
|
"name": "<@safe_include "suggestion_agreements_field_title"/>",
|
||||||
"value": "${agreeVotes?c}"
|
"value": "👍 ${agreeVotes?c} (${agreementPercentage?ceiling}%)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "<@safe_include "suggestion_disagreements_field_title"/>",
|
"name": "<@safe_include "suggestion_disagreements_field_title"/>",
|
||||||
"value": "${disAgreeVotes?c}"
|
"value": "👎 ${disAgreeVotes?c} (${disAgreementPercentage?ceiling}%)"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Suggestion
|
||||||
Reference in New Issue
Block a user