mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-14 03:46:00 +00:00
[AB-240] moving invite filtering to separate module
adding templates for effects rework changed display of optional parameters in help
This commit is contained in:
37
abstracto-modules/invite-filter/pom.xml
Normal file
37
abstracto-modules/invite-filter/pom.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>abstracto-modules</artifactId>
|
||||
<groupId>dev.sheldan.abstracto-templates.templates</groupId>
|
||||
<version>1.2.7-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>invite-filter</artifactId>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<finalName>invite-filter-templates-${project.version}</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/assembly.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@@ -0,0 +1,15 @@
|
||||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||
<id>zip</id>
|
||||
<includeBaseDirectory>false</includeBaseDirectory>
|
||||
<formats>
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<outputDirectory>.</outputDirectory>
|
||||
<directory>${project.basedir}/src/main/resources</directory>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</assembly>
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"title": {
|
||||
"title": "<@safe_include "tracked_invite_links_embed_title"/>"
|
||||
},
|
||||
<#include "success_color">,
|
||||
"description": "<#list inviteLinks as link><#assign link=link/>
|
||||
<#assign linkText>${link.serverName}</#assign>
|
||||
<#assign linkUses>${link.uses}</#assign>
|
||||
<@safe_include "tracked_invite_links_link_display"/><#else><@safe_include "tracked_invite_links_no_links"/>
|
||||
</#list>"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "invite_link_not_allowed_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "invalid_invite_link_exception_text">
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=author/>,
|
||||
<#assign authorMention=author.asMention>
|
||||
"description": "<@safe_include "invite_link_deleted_embed_description"/>",
|
||||
<#include "abstracto_color"/>,
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "invite_link_deleted_invite_field_header"/>",
|
||||
"value": "<#list invites as invite><#if invite.count gt 1>${invite.count}x </#if>${invite.code}<#sep>, </#list>"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "invite_link_deleted_message_link_title"/>",
|
||||
"value": "[${channel.name?json_string}](${message.jumpUrl})"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user