[AB-182] adding templates for starStats command with specific member

This commit is contained in:
Sheldan
2021-02-15 01:41:47 +01:00
parent 911b484a3b
commit 311c96cb1b
7 changed files with 36 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
{
"title": {
"title": "<@safe_include "starStats_member_response_title"/>"
},
"author": {
"name": "<@member_user_name member=member/>",
"avatar": "${member.user.effectiveAvatarUrl}"
},
<#include "abstracto_color">,
"fields": [
{
"name": "<@safe_include "starStats_top_starred_field_title"/>",
"value": "
<#list topPosts as post><#assign post=post/>
<#assign badge>${badgeEmotes[post?index]}</#assign><#assign count>${post.starCount}</#assign><#assign link>${post.messageUrl}</#assign> <@safe_include "starStats_starred_entry"/><#else>
<@safe_include "starStats_no_starred_messages"/>
</#list>
"
},
{
"name": "<@safe_include "starStats_member_received_stars_field_title"/>",
"value": "${receivedStars}"
},
{
"name": "<@safe_include "starStats_member_given_stars_field_title"/>",
"value": "${givenStars}"
}
]
}

View File

@@ -1 +1 @@
Shows the current leader board of starboard posts.
Shows the current leader board of starboard posts

View File

@@ -1 +1,2 @@
Shows the current leader board of starboard posts.
Shows the current leader board of starboard posts. Can also be used to show the starboard statistics for an individual member.
This user needs to be still in this server.

View File

@@ -0,0 +1 @@
The member for whom the starboard statistics should be retrieved for. Only possible for members still in the server.