mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-02 07:44:22 +00:00
[AB-47] adding templates for level actions feature mode
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "addLevelAction_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"additionalMessage": "<@safe_include "removeLevelAction_response_text"/>",
|
||||
"messageConfig": {
|
||||
"ephemeral": true
|
||||
}
|
||||
}
|
||||
@@ -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>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#include "level_action_not_found_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
Level action has been added.
|
||||
@@ -0,0 +1 @@
|
||||
Adds a action to be executed when a member reaches a level
|
||||
@@ -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.
|
||||
@@ -0,0 +1 @@
|
||||
The action to perform
|
||||
@@ -0,0 +1 @@
|
||||
The level for a member to reach
|
||||
@@ -0,0 +1 @@
|
||||
If provided this will restrict the action to be only executed for this member
|
||||
@@ -0,0 +1 @@
|
||||
Parameters specific to the action to be performed.
|
||||
@@ -0,0 +1 @@
|
||||
Removes a action from the actions to be performed when a member reaches a level
|
||||
@@ -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.
|
||||
@@ -0,0 +1 @@
|
||||
The action to perform
|
||||
@@ -0,0 +1 @@
|
||||
The level for a member to reach
|
||||
@@ -0,0 +1 @@
|
||||
If provided this will restrict the action to be removed to only this member
|
||||
@@ -0,0 +1 @@
|
||||
Level action has been removed.
|
||||
@@ -0,0 +1 @@
|
||||
Shows the current level actions
|
||||
@@ -0,0 +1 @@
|
||||
Shows the current level actions, and the member restrictions (if any)
|
||||
@@ -0,0 +1 @@
|
||||
<#assign channelMention="<#${parameters.channelId?c}>"> Adds member to ${channelMention}
|
||||
@@ -0,0 +1 @@
|
||||
adds a member to a channel once they reach the level
|
||||
@@ -0,0 +1 @@
|
||||
<#assign rolePing="<@&${parameters.roleId?c}>">Adds role ${rolePing}
|
||||
@@ -0,0 +1 @@
|
||||
gives a member a role once they reach the level
|
||||
@@ -0,0 +1 @@
|
||||
Action at level ${level}: ${actionDescription} (`${actionKey}`). ${actionParameter}. <#if memberdisplay??>This is limited to ${memberdisplay}</#if>
|
||||
@@ -0,0 +1 @@
|
||||
<#assign channelMention="<#${parameters.channelId?c}>"> Removes member ${channelMention}
|
||||
@@ -0,0 +1 @@
|
||||
removes the member from a channel once they reach the level
|
||||
@@ -0,0 +1 @@
|
||||
<#assign rolePing="<@&${parameters.roleId?c}>">Removes ${rolePing}
|
||||
@@ -0,0 +1 @@
|
||||
removes a role from a member once they reach the level
|
||||
@@ -0,0 +1 @@
|
||||
Level action not found.
|
||||
Reference in New Issue
Block a user