From 911b484a3b8d6b50c6f90c9f1b2dc03fe852e785 Mon Sep 17 00:00:00 2001 From: Sheldan <5037282+Sheldan@users.noreply.github.com> Date: Sun, 14 Feb 2021 19:53:49 +0100 Subject: [PATCH] [AB-120] adding jump link to modmail notification --- .../modmail_notification_message_embed_en_US.ftl | 8 +++++++- .../modmail_notification_field_title_channel_en_US.ftl | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 translations/modmail/src/main/resources/en_US/notification/modmail_notification_field_title_channel_en_US.ftl diff --git a/abstracto-modules/modmail/src/main/resources/en_US/listener/messageReceived/modmail_notification_message_embed_en_US.ftl b/abstracto-modules/modmail/src/main/resources/en_US/listener/messageReceived/modmail_notification_message_embed_en_US.ftl index eb0f6085..45aa7631 100644 --- a/abstracto-modules/modmail/src/main/resources/en_US/listener/messageReceived/modmail_notification_message_embed_en_US.ftl +++ b/abstracto-modules/modmail/src/main/resources/en_US/listener/messageReceived/modmail_notification_message_embed_en_US.ftl @@ -6,7 +6,13 @@ }, <#include "modmail_color">, <#assign user><@member_user_name member=member/>(${member.user.id}) - "description": "<@safe_include "modmail_notification_message_description"/>" + "description": "<@safe_include "modmail_notification_message_description"/>", + "fields": [ + { + "name": "<@safe_include "modmail_notification_field_title_channel"/>", + "value": "${channel.asMention}" + } + ] <#if roles?size gt 0> ,"additionalMessage": "<#list roles as role>${role.role.asMention?js_string}<#sep>," diff --git a/translations/modmail/src/main/resources/en_US/notification/modmail_notification_field_title_channel_en_US.ftl b/translations/modmail/src/main/resources/en_US/notification/modmail_notification_field_title_channel_en_US.ftl new file mode 100644 index 00000000..0af9019e --- /dev/null +++ b/translations/modmail/src/main/resources/en_US/notification/modmail_notification_field_title_channel_en_US.ftl @@ -0,0 +1 @@ +Channel \ No newline at end of file