[AB-84] adding suggestion text, vote percentages and emotes to suggestion update message

This commit is contained in:
Sheldan
2023-02-25 18:34:27 +01:00
parent f934f1d2f9
commit acb65e49b2
2 changed files with 4 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
<#if message?? && message.attachments?size gt 0>
"imageUrl": "${message.attachments[0].proxyUrl}",
</#if>
"description": "<@safe_include "suggest_text_label"/>: ${text}",
"fields": [
<#if reason?has_content>
{
@@ -14,11 +15,11 @@
</#if>
{
"name": "<@safe_include "suggestion_agreements_field_title"/>",
"value": "${agreeVotes?c}"
"value": "👍 ${agreeVotes?c} (${agreementPercentage?ceiling}%)"
},
{
"name": "<@safe_include "suggestion_disagreements_field_title"/>",
"value": "${disAgreeVotes?c}"
"value": "👎 ${disAgreeVotes?c} (${disAgreementPercentage?ceiling}%)"
}
]
}