mirror of
https://github.com/Sheldan/Sissi.git
synced 2026-01-01 23:35:21 +00:00
[SIS-15] adding optional donation listing to donation command
refactoring to use the proper API instead of relying on parsing prepare for release
This commit is contained in:
@@ -1,10 +1,26 @@
|
||||
{
|
||||
<#assign donationAmount=donationAmount>
|
||||
<#assign donationAmount=totalAmount>
|
||||
<#setting locale="de_DE">
|
||||
"additionalMessage": "<#include "donations_response_description">",
|
||||
"embeds": [
|
||||
{
|
||||
"imageUrl": "https://cdn.discordapp.com/attachments/299115929206390784/1047306670319079474/dotpict-1.png"
|
||||
<#if donations?size gt 0>
|
||||
,<#if type.name() == "LATEST">
|
||||
"description": "<#include "donations_response_latest_donations_description">"
|
||||
<#else>
|
||||
"description": "<#include "donations_response_top_donations_description">"
|
||||
</#if>
|
||||
,"fields": [
|
||||
<#list donations as donation>
|
||||
{
|
||||
"name": "<#if donation.anonymous><#include "donations_response_anonymous"><#else>${donation.firstName}</#if>",
|
||||
"value": "${donation.donationAmount}€",
|
||||
"inline": true
|
||||
}
|
||||
<#sep>,</#list>
|
||||
]
|
||||
</#if>
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Anonym
|
||||
@@ -0,0 +1 @@
|
||||
Das hier sind die neuesten Spenden:
|
||||
@@ -0,0 +1 @@
|
||||
Das hier sind die höchsten Spenden:
|
||||
@@ -0,0 +1 @@
|
||||
The amount of donations you want to load for the specified type. Defaults to 5, max 20.
|
||||
@@ -0,0 +1 @@
|
||||
Type of donations you want to load, either 'top' or 'latest'. Default 'latest' for any other value
|
||||
Reference in New Issue
Block a user