mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-17 04:29:14 +00:00
[AB-77] removing embedded exceptions
adding templates for file parameter adding templates for server specific custom templates
This commit is contained in:
@@ -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
|
||||
@@ -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/).
|
||||
@@ -0,0 +1 @@
|
||||
The attached file containing the content of the template
|
||||
@@ -0,0 +1 @@
|
||||
The key of the template to change for this server
|
||||
@@ -0,0 +1 @@
|
||||
No attachment found.
|
||||
@@ -0,0 +1 @@
|
||||
Custom template `${templateKey}` for guild ${guildName} not found.
|
||||
@@ -0,0 +1 @@
|
||||
Failed to set template.
|
||||
@@ -0,0 +1 @@
|
||||
Template not found.
|
||||
@@ -0,0 +1 @@
|
||||
File was too large to upload. (${fileSize?c} B > ${fileSizeLimit?c} B)
|
||||
Reference in New Issue
Block a user