[AB-77] removing embedded exceptions

adding templates for file parameter
adding templates for server specific custom templates
This commit is contained in:
Sheldan
2021-02-20 13:32:20 +01:00
parent 311c96cb1b
commit 7f0ec7d47c
109 changed files with 49 additions and 78 deletions

View File

@@ -1 +0,0 @@
"description": "<@safe_include "assignable_role_place_assigned_user_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "assignable_role_place_channel_does_not_exist_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "assignable_role_place_emote_already_defined_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "assignable_role_place_emote_not_assigned_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "assignable_role_place_exists_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "assignable_role_place_illegal_configuration_key_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "assignable_role_place_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "assignable_role_place_position_exists_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "assignable_role_place_post_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "assignable_role_place_role_not_usable_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "emote_not_in_assignable_role_place_exception"/>"

View File

@@ -0,0 +1,3 @@
<#assign templateKey=templateKey>
<#assign serverId=guild.id>
<#include "getCustomTemplate_file_name_text">

View File

@@ -0,0 +1,4 @@
{
<#assign templateKey=templateKey>
"additionalMessage": "<@safe_include "getCustomTemplate_response_embed_text"/>"
}

View File

@@ -0,0 +1,2 @@
<#assign templateKey=templateKey>
<#include "getTemplate_file_name_text">

View File

@@ -0,0 +1,4 @@
{
<#assign templateKey=templateKey>
"additionalMessage": "<@safe_include "getTemplate_response_embed_text"/>"
}

View File

@@ -0,0 +1 @@
<#include "attachment_not_found_exception_text">

View File

@@ -0,0 +1,3 @@
<#assign guildName=model.guild.name>
<#assign templateKey=model.templateKey>
<#include "custom_template_not_found_exception_text">

View File

@@ -1 +0,0 @@
"description": "<@safe_include "category_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "channel_already_in_channel_group_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "channel_group_exists_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "channel_group_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "channel_group_type_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "channel_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "channel_not_in_channel_group_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "channel_not_in_guild_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "command_disabled_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "command_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "command_parameter_validation_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<#include "command_parameter_value_wrong_type_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "config_key_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "duration_invalid_time_format_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "emote_defined_but_not_usable_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "emote_not_available_in_server_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "emote_not_defined_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "emote_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "emote_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "emote_not_usable_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "feature_disabled_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "feature_mode_not_correct_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "feature_mode_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "feature_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "feature_setup_no_channel_provided_exception"/>"

View File

@@ -1 +0,0 @@
description": "<@safe_include "feature_setup_step_exception">

View File

@@ -1 +0,0 @@
"description": "<@safe_include "guild_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "immune_role_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "incorrect_feature_mode_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "incorrect_parameters_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "insufficient_parameters_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "insufficient_role_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "member_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "no_feature_command_found_exception/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "post_target_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "post_target_not_valid_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "role_disabled_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "role_not_found_in_db_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "role_not_found_in_guild_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "server_channel_conflict_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "unknown_mention_type_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "user_in_server_not_found_exception"/>"

View File

@@ -0,0 +1 @@
<#include "failed_to_set_template_exception_text">

View File

@@ -14,7 +14,7 @@
<#if template?has_content>
<#if template.templateModel?has_content>
<#assign model=template.templateModel/>
<#include "${template.templateName}_embedded"/>
"description": "<@safe_include "${template.templateName}"/>"
</#if>
<#elseif throwable.localizedMessage?has_content>
"description": "${throwable.localizedMessage?js_string}"

View File

@@ -0,0 +1 @@
<#include "template_not_found_exception_text">

View File

@@ -0,0 +1,3 @@
<#assign fileSize=model.fileSize>
<#assign fileSizeLimit=model.fileSizeLimit>
<#include "emote_stats_download_file_size_too_big_text">

View File

@@ -1 +0,0 @@
"description": "<@safe_include "invite_link_not_allowed_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "invalid_invite_link_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "mute_role_has_not_been_setup_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "no_message_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "note_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "unMute_has_no_active_mute_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "feature_setup_category_not_valid_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "modmail_already_subscribed_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "modmail_exception_cannot_delete_channel_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "modmail_cannot_find_modmail_thread_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "modmail_cannot_message_user_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "modmail_category_not_setup"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "modmail_failed_to_create_mod_mail_thread"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "modmail_not_in_modmail_thread_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "modmail_not_subscribed_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "modmail_post_target_not_defined_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "emote_stats_download_file_size_too_big"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "emote_stats_tracked_emote_not_found"/>"

View File

@@ -1 +0,0 @@
<#assign fileSize=model.fileSize><#assign maxFileSize=model.fileSizeLimit><#include "emote_stats_download_file_size_too_big_text">

View File

@@ -1 +0,0 @@
"description": "<@safe_include "reminder_does_not_exist_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "repost_check_check_channel_not_found_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "suggestion_does_not_exist_exception"/>"

View File

@@ -1 +0,0 @@
"description": "<@safe_include "suggestion_update_exception"/>"

View File

@@ -0,0 +1 @@
Retrieves a custom template and provides the content to download.

View File

@@ -0,0 +1,2 @@
Retrieves a specific custom template for this server and provides it as a download.
If there is no template customization for this server, this will throw an error.

View File

@@ -0,0 +1 @@
The template key of the custom template to retrieve for this server

View File

@@ -0,0 +1 @@
Content of template ${templateKey}.

View File

@@ -0,0 +1,2 @@
Retrieves a used template from the database and provides it as a file.
This template is part from the global templates and cannot be changed directly, only replaced via a custom template (via `setTemplate`) for a specific server.

View File

@@ -0,0 +1 @@
The key of the template to retrieve

View File

@@ -0,0 +1 @@
Resets a template to the global template content

View File

@@ -0,0 +1,2 @@
Removes the template customization for this server for a template identified by `templateKey`.
This will take effect immediately. If the provided template key was not customized for this server, it will show an exception message indicating so.

View File

@@ -0,0 +1 @@
The key of the customized template to reset

View File

@@ -0,0 +1 @@
Sets the content of a template only for this server

Some files were not shown because too many files have changed in this diff Show More