[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

@@ -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

View File

@@ -0,0 +1,3 @@
Sets the content of the template identified by `templateKey` for this server to the content of the **attached** plain text file. The file does not need to have any particular naming.
If there already exists a customized template it will be overwritten, otherwise a new one will be created. This change will take effect immediately.
The syntax of this template must be valid [Freemarker](https://freemarker.apache.org/).

View File

@@ -0,0 +1 @@
The attached file containing the content of the template

View File

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

View File

@@ -0,0 +1 @@
Custom template `${templateKey}` for guild ${guildName} not found.

View File

@@ -0,0 +1 @@
File was too large to upload. (${fileSize?c} B > ${fileSizeLimit?c} B)