mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-10 18:33:32 +00:00
[AB-77] removing embedded exceptions
adding templates for file parameter adding templates for server specific custom templates
This commit is contained in:
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "assignable_role_place_assigned_user_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "assignable_role_place_channel_does_not_exist_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "assignable_role_place_emote_already_defined_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "assignable_role_place_emote_not_assigned_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "assignable_role_place_exists_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "assignable_role_place_illegal_configuration_key_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "assignable_role_place_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "assignable_role_place_position_exists_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "assignable_role_place_post_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "assignable_role_place_role_not_usable_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "emote_not_in_assignable_role_place_exception"/>"
|
||||
@@ -0,0 +1,3 @@
|
||||
<#assign templateKey=templateKey>
|
||||
<#assign serverId=guild.id>
|
||||
<#include "getCustomTemplate_file_name_text">
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
<#assign templateKey=templateKey>
|
||||
"additionalMessage": "<@safe_include "getCustomTemplate_response_embed_text"/>"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<#assign templateKey=templateKey>
|
||||
<#include "getTemplate_file_name_text">
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
<#assign templateKey=templateKey>
|
||||
"additionalMessage": "<@safe_include "getTemplate_response_embed_text"/>"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "attachment_not_found_exception_text">
|
||||
@@ -0,0 +1,3 @@
|
||||
<#assign guildName=model.guild.name>
|
||||
<#assign templateKey=model.templateKey>
|
||||
<#include "custom_template_not_found_exception_text">
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "category_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "channel_already_in_channel_group_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "channel_group_exists_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "channel_group_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "channel_group_type_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "channel_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "channel_not_in_channel_group_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "channel_not_in_guild_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "command_disabled_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "command_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "command_parameter_validation_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<#include "command_parameter_value_wrong_type_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "config_key_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "duration_invalid_time_format_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "emote_defined_but_not_usable_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "emote_not_available_in_server_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "emote_not_defined_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "emote_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "emote_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "emote_not_usable_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "feature_disabled_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "feature_mode_not_correct_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "feature_mode_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "feature_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "feature_setup_no_channel_provided_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
description": "<@safe_include "feature_setup_step_exception">
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "guild_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "immune_role_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "incorrect_feature_mode_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "incorrect_parameters_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "insufficient_parameters_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "insufficient_role_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "member_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "no_feature_command_found_exception/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "post_target_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "post_target_not_valid_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "role_disabled_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "role_not_found_in_db_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "role_not_found_in_guild_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "server_channel_conflict_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "unknown_mention_type_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "user_in_server_not_found_exception"/>"
|
||||
@@ -0,0 +1 @@
|
||||
<#include "failed_to_set_template_exception_text">
|
||||
@@ -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}"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<#include "template_not_found_exception_text">
|
||||
@@ -0,0 +1,3 @@
|
||||
<#assign fileSize=model.fileSize>
|
||||
<#assign fileSizeLimit=model.fileSizeLimit>
|
||||
<#include "emote_stats_download_file_size_too_big_text">
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "invite_link_not_allowed_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "invalid_invite_link_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "mute_role_has_not_been_setup_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "no_message_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "note_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "unMute_has_no_active_mute_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "feature_setup_category_not_valid_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "modmail_already_subscribed_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "modmail_exception_cannot_delete_channel_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "modmail_cannot_find_modmail_thread_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "modmail_cannot_message_user_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "modmail_category_not_setup"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "modmail_failed_to_create_mod_mail_thread"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "modmail_not_in_modmail_thread_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "modmail_not_subscribed_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "modmail_post_target_not_defined_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "emote_stats_download_file_size_too_big"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "emote_stats_tracked_emote_not_found"/>"
|
||||
@@ -1 +0,0 @@
|
||||
<#assign fileSize=model.fileSize><#assign maxFileSize=model.fileSizeLimit><#include "emote_stats_download_file_size_too_big_text">
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "reminder_does_not_exist_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "repost_check_check_channel_not_found_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "suggestion_does_not_exist_exception"/>"
|
||||
@@ -1 +0,0 @@
|
||||
"description": "<@safe_include "suggestion_update_exception"/>"
|
||||
@@ -0,0 +1 @@
|
||||
${serverId}-${templateKey}.ftl
|
||||
@@ -0,0 +1 @@
|
||||
Content of template ${templateKey}.
|
||||
@@ -0,0 +1 @@
|
||||
Retrieves a custom template and provides the content to download.
|
||||
@@ -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.
|
||||
@@ -0,0 +1 @@
|
||||
The template key of the custom template to retrieve for this server
|
||||
@@ -0,0 +1 @@
|
||||
${templateKey}.ftl
|
||||
@@ -0,0 +1 @@
|
||||
Content of template ${templateKey}.
|
||||
@@ -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.
|
||||
@@ -0,0 +1 @@
|
||||
The key of the template to retrieve
|
||||
@@ -0,0 +1 @@
|
||||
Resets a template to the global template content
|
||||
@@ -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.
|
||||
@@ -0,0 +1 @@
|
||||
The key of the customized template to reset
|
||||
@@ -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
Reference in New Issue
Block a user