mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-14 03:45:57 +00:00
[AB-73] adding different feature modes to define whether or not certain actions should be logged, changing name of setup, disable and enable command to show that they are supposed to be for features
This commit is contained in:
@@ -14,7 +14,7 @@ public class InvalidCategoryException extends AbstractoRunTimeException implemen
|
||||
|
||||
@Override
|
||||
public String getTemplateName() {
|
||||
return "setup_category_not_valid_exception";
|
||||
return "feature_setup_category_not_valid_exception";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -23,7 +23,7 @@ public class ModMailCategoryDelayedActionConfig implements DelayedActionConfig {
|
||||
|
||||
@Override
|
||||
public String getTemplateName() {
|
||||
return "setup_modmail_category_action";
|
||||
return "feature_setup_modmail_category_action";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -73,7 +73,7 @@ public class ModMailCategorySetupBean implements ModMailCategorySetup {
|
||||
*/
|
||||
@Override
|
||||
public CompletableFuture<SetupStepResult> execute(AServerChannelUserId user, SetupStepParameter parameter) {
|
||||
String messageTemplateKey = "setup_modmail_category_message";
|
||||
String messageTemplateKey = "feature_setup_modmail_category_message";
|
||||
SetupModMailCategoryMessageModel model = SetupModMailCategoryMessageModel
|
||||
.builder()
|
||||
.build();
|
||||
|
||||
@@ -11,7 +11,7 @@ import lombok.Getter;
|
||||
public enum ModMailMode implements FeatureMode {
|
||||
LOGGING("log");
|
||||
|
||||
private String key;
|
||||
private final String key;
|
||||
|
||||
ModMailMode(String key) {
|
||||
this.key = key;
|
||||
|
||||
@@ -18,7 +18,7 @@ public class ModMailCategoryValidationErrorModel implements ValidationErrorModel
|
||||
|
||||
@Override
|
||||
public String getTemplateName() {
|
||||
return "setup_modmail_category_not_setup";
|
||||
return "feature_setup_modmail_category_not_setup";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user