[AB-47] adding templates for level actions feature mode

This commit is contained in:
Sheldan
2024-02-28 21:28:45 +01:00
parent 8957f87006
commit 7920044749
29 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "addLevelAction_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,6 @@
{
"additionalMessage": "<@safe_include "removeLevelAction_response_text"/>",
"messageConfig": {
"ephemeral": true
}
}

View File

@@ -0,0 +1,19 @@
{
"embeds": [
{
<#macro actionDisplay action>
<#assign parameters = action.parameters?eval_json>
<#assign level=action.level>
<#assign actionDescription><@safe_include "showLevelActions_action_${action.actionKey}"/></#assign>
<#assign actionKey=action.actionKey/>
<#assign actionParameter><@safe_include "showLevelActions_action_${action.actionKey}_config"/></#assign>
<#if action.member??>
<#assign memberdisplay=action.member.memberMention/>
</#if>
<@safe_include "showLevelActions_action_description"/>
</#macro>
"description": "<#list actions as action><@actionDisplay action=action/></#list>"
}
]
}

View File

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

View File

@@ -0,0 +1 @@
Adds a action to be executed when a member reaches a level

View File

@@ -0,0 +1,7 @@
This command configures an pre-defined action to be executed when a member reaches a certain level (or a level above).
These actions are pre-defined.
The actions available per default:
add_member_to_channel_above_level: Adds a member to the provided channel with view channel and write message permissions. The channel can be provided as: ID, mention or name of channel
add_role_above_level: Adds the provided role to a member. The role can be provided as. ID, mention or name of role.
remove_member_from_channel_above_level: Removes all permission overrides of a member on a channel. The channel can be provided as: ID, mention or name of channel.
remove_role_above_level: Removes the provided role to a member. The role can be provided as. ID, mention or name of role.

View File

@@ -0,0 +1 @@
If provided this will restrict the action to be only executed for this member

View File

@@ -0,0 +1 @@
Parameters specific to the action to be performed.

View File

@@ -0,0 +1 @@
Removes a action from the actions to be performed when a member reaches a level

View File

@@ -0,0 +1,2 @@
This command can be used to remove an action from the actions to be performed when a member reaches a certain level.
The action is identified by: action name, level, and optionally the member.

View File

@@ -0,0 +1 @@
If provided this will restrict the action to be removed to only this member

View File

@@ -0,0 +1 @@
Shows the current level actions, and the member restrictions (if any)

View File

@@ -0,0 +1 @@
<#assign channelMention="<#${parameters.channelId?c}>"> Adds member to ${channelMention}

View File

@@ -0,0 +1 @@
<#assign rolePing="<@&${parameters.roleId?c}>">Adds role ${rolePing}

View File

@@ -0,0 +1 @@
Action at level ${level}: ${actionDescription} (`${actionKey}`). ${actionParameter}. <#if memberdisplay??>This is limited to ${memberdisplay}</#if>

View File

@@ -0,0 +1 @@
<#assign channelMention="<#${parameters.channelId?c}>"> Removes member ${channelMention}

View File

@@ -0,0 +1 @@
<#assign rolePing="<@&${parameters.roleId?c}>">Removes ${rolePing}

View File

@@ -0,0 +1 @@
removes a role from a member once they reach the level