mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-05 00:53:01 +00:00
[AB-216] replacing js_string with json_string in order to escape characters, because js_string could lead to illegal escape sequences
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "showAvatar_response_embed_user_field_title"/>",
|
||||
"value": "${memberInfo.user.name?js_string}#${memberInfo.user.discriminator}",
|
||||
"value": "${memberInfo.user.name?json_string}#${memberInfo.user.discriminator}",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<#if memberInfo.nickname?has_content>
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_nickname_field_title"/>",
|
||||
"value": "${memberInfo.nickname?js_string}",
|
||||
"value": "${memberInfo.nickname?json_string}",
|
||||
"inline": "true"
|
||||
},
|
||||
</#if>
|
||||
@@ -35,7 +35,7 @@
|
||||
,
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_activity_field_title"/>",
|
||||
"value": "<#list memberInfo.activities as activity>${activity.type?js_string}<#sep>, </#list>",
|
||||
"value": "<#list memberInfo.activities as activity>${activity.type?json_string}<#sep>, </#list>",
|
||||
"inline": "true"
|
||||
}
|
||||
</#if>
|
||||
|
||||
Reference in New Issue
Block a user