[AB-xxx] adding information whether a command is slash/message command only to help output

resizing template content column
This commit is contained in:
Sheldan
2023-09-20 02:01:09 +02:00
parent e8f630c94c
commit f12581f322
95 changed files with 880 additions and 140 deletions

View File

@@ -41,13 +41,19 @@ public class ActivateAssignableRolePlace extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter placeName = Parameter.builder().name("name").type(String.class).templated(true).build();
Parameter placeName = Parameter
.builder()
.name("name")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(placeName);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("activateAssignableRolePlace")
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.messageCommandOnly(true)
.async(true)
.supportsEmbedException(true)
.causesReaction(true)

View File

@@ -36,16 +36,40 @@ public class AddAssignableRoleCondition extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter placeName = Parameter.builder().name("name").type(String.class).templated(true).build();
Parameter role = Parameter.builder().name("role").type(Role.class).templated(true).build();
Parameter conditionKey = Parameter.builder().name("conditionKey").type(AssignableRoleConditionType.class).templated(true).build();
Parameter conditionValue = Parameter.builder().name("conditionParameter").type(String.class).templated(true).build();
Parameter placeName = Parameter
.builder()
.name("name")
.type(String.class)
.templated(true)
.build();
Parameter role = Parameter
.builder()
.name("role")
.type(Role.class)
.templated(true)
.build();
Parameter conditionKey = Parameter
.builder()
.name("conditionKey")
.type(AssignableRoleConditionType.class)
.templated(true)
.build();
Parameter conditionValue = Parameter
.builder()
.name("conditionParameter")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(placeName, role, conditionKey, conditionValue);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("addAssignableRoleCondition")
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -62,17 +62,42 @@ public class AddRoleToAssignableRolePost extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter placeName = Parameter.builder().name("name").type(String.class).templated(true).build();
Parameter role = Parameter.builder().name("role").type(Role.class).templated(true).build();
Parameter rolePostName = Parameter.builder().name("displayText").type(String.class).templated(true).build();
Parameter emote = Parameter.builder().name("emote").type(FullEmote.class).optional(true).templated(true).build();
Parameter placeName = Parameter
.builder()
.name("name")
.type(String.class)
.templated(true)
.build();
Parameter role = Parameter
.builder()
.name("role")
.type(Role.class)
.templated(true)
.build();
Parameter rolePostName = Parameter
.builder()
.name("displayText")
.type(String.class)
.templated(true)
.build();
Parameter emote = Parameter
.builder()
.name("emote")
.type(FullEmote.class)
.optional(true)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(placeName, role, rolePostName, emote);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("addRoleToAssignableRolePlace")
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.causesReaction(true)
.messageCommandOnly(true)
.async(true)
.supportsEmbedException(true)
.parameters(parameters)

View File

@@ -47,9 +47,24 @@ public class ChangeAssignableRolePlaceConfig extends AbstractConditionableComman
@Override
public CommandConfiguration getConfiguration() {
Parameter assignableRolePlaceName = Parameter.builder().name("name").type(String.class).templated(true).build();
Parameter parameterKey = Parameter.builder().name("key").type(AssignableRolePlaceParameterKey.class).templated(true).build();
Parameter parameterValue = Parameter.builder().name("value").type(String.class).templated(true).build();
Parameter assignableRolePlaceName = Parameter
.builder()
.name("name")
.type(String.class)
.templated(true)
.build();
Parameter parameterKey = Parameter
.builder()
.name("key")
.type(AssignableRolePlaceParameterKey.class)
.templated(true)
.build();
Parameter parameterValue = Parameter
.builder()
.name("value")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(assignableRolePlaceName, parameterKey, parameterValue);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
@@ -57,6 +72,7 @@ public class ChangeAssignableRolePlaceConfig extends AbstractConditionableComman
.name("changeAssignableRolePlaceConfig")
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.messageCommandOnly(true)
.async(true)
.supportsEmbedException(true)
.causesReaction(true)

View File

@@ -33,9 +33,6 @@ public class CreateAssignableRolePost extends AbstractConditionableCommand {
@Autowired
private ChannelManagementService channelManagementService;
@Autowired
private ServerManagementService serverManagementService;
@Override
public CommandResult execute(CommandContext commandContext) {
List<Object> parameters = commandContext.getParameters().getParameters();
@@ -57,20 +54,47 @@ public class CreateAssignableRolePost extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<ParameterValidator> rolePlaceNameValidator = Arrays.asList(MaxStringLengthValidator.max(AssignableRolePlace.ASSIGNABLE_PLACE_NAME_LIMIT));
Parameter rolePostName = Parameter.builder().name("name").validators(rolePlaceNameValidator).type(String.class).templated(true).build();
Parameter channel = Parameter.builder().name("channel").type(TextChannel.class).templated(true).build();
Parameter type = Parameter.builder().name("type").type(AssignableRolePlaceType.class).templated(true).optional(true).build();
Parameter rolePostName = Parameter
.builder()
.name("name")
.validators(rolePlaceNameValidator)
.type(String.class)
.templated(true)
.build();
Parameter channel = Parameter
.builder()
.name("channel")
.type(TextChannel.class)
.templated(true)
.build();
Parameter type = Parameter
.builder()
.name("type")
.type(AssignableRolePlaceType.class)
.templated(true)
.optional(true)
.build();
List<ParameterValidator> rolePlaceDescriptionValidator = Arrays.asList(MaxStringLengthValidator.max(AssignableRolePlace.ASSIGNABLE_PLACE_NAME_LIMIT));
Parameter text = Parameter.builder().name("text").validators(rolePlaceDescriptionValidator).type(String.class).templated(true).build();
Parameter text = Parameter
.builder()
.name("text")
.validators(rolePlaceDescriptionValidator)
.type(String.class)
.templated(true)
.build();
List<String> aliases = Arrays.asList("crRPl", "crAssRoPl");
List<Parameter> parameters = Arrays.asList(rolePostName, channel, text, type);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("createAssignableRolePlace")
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.supportsEmbedException(true)
.causesReaction(true)
.messageCommandOnly(true)
.parameters(parameters)
.aliases(aliases)
.help(helpInfo)

View File

@@ -41,7 +41,12 @@ public class DeactivateAssignableRolePlace extends AbstractConditionableCommand
@Override
public CommandConfiguration getConfiguration() {
Parameter rolePostName = Parameter.builder().name("name").type(String.class).templated(true).build();
Parameter rolePostName = Parameter
.builder()
.name("name")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(rolePostName);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
@@ -49,6 +54,7 @@ public class DeactivateAssignableRolePlace extends AbstractConditionableCommand
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -41,7 +41,12 @@ public class DeleteAssignableRolePlace extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter rolePostName = Parameter.builder().name("name").type(String.class).templated(true).build();
Parameter rolePostName = Parameter
.builder()
.name("name")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(rolePostName);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
@@ -50,6 +55,7 @@ public class DeleteAssignableRolePlace extends AbstractConditionableCommand {
.templated(true)
.causesReaction(true)
.async(true)
.messageCommandOnly(true)
.requiresConfirmation(true)
.supportsEmbedException(true)
.parameters(parameters)

View File

@@ -46,15 +46,29 @@ public class EditAssignableRolePlaceText extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<ParameterValidator> rolePlaceNameValidator = Arrays.asList(MaxStringLengthValidator.max(AssignableRolePlace.ASSIGNABLE_PLACE_NAME_LIMIT));
Parameter rolePostName = Parameter.builder().name("name").validators(rolePlaceNameValidator).type(String.class).templated(true).build();
Parameter newText = Parameter.builder().name("newText").type(String.class).templated(true).build();
Parameter rolePostName = Parameter
.builder().name("name")
.validators(rolePlaceNameValidator)
.type(String.class)
.templated(true)
.build();
Parameter newText = Parameter
.builder()
.name("newText")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(rolePostName, newText);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("editAssignableRolePlaceText")
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -67,6 +67,7 @@ public class MoveAssignableRolePlace extends AbstractConditionableCommand {
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.causesReaction(true)
.messageCommandOnly(true)
.async(true)
.supportsEmbedException(true)
.parameters(parameters)

View File

@@ -35,15 +35,31 @@ public class RemoveAssignableRoleCondition extends AbstractConditionableCommand
@Override
public CommandConfiguration getConfiguration() {
Parameter placeName = Parameter.builder().name("name").type(String.class).templated(true).build();
Parameter role = Parameter.builder().name("role").type(Role.class).templated(true).build();
Parameter conditionKey = Parameter.builder().name("conditionKey").type(AssignableRoleConditionType.class).templated(true).build();
Parameter placeName = Parameter
.builder()
.name("name")
.type(String.class)
.templated(true)
.build();
Parameter role = Parameter
.builder()
.name("role")
.type(Role.class)
.templated(true)
.build();
Parameter conditionKey = Parameter
.builder()
.name("conditionKey")
.type(AssignableRoleConditionType.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(placeName, role, conditionKey);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("removeAssignableRoleCondition")
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -44,16 +44,30 @@ public class RemoveRoleFromAssignableRolePlace extends AbstractConditionableComm
@Override
public CommandConfiguration getConfiguration() {
Parameter rolePostName = Parameter.builder().name("name").type(String.class).templated(true).build();
Parameter role = Parameter.builder().name("role").type(ARole.class).templated(true).build();
Parameter rolePostName = Parameter
.builder()
.name("name")
.type(String.class)
.templated(true)
.build();
Parameter role = Parameter
.builder()
.name("role")
.type(ARole.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(rolePostName, role);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("removeRoleFromAssignableRolePlace")
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.causesReaction(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.parameters(parameters)
.help(helpInfo)

View File

@@ -48,14 +48,23 @@ public class SetupAssignableRolePlace extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter rolePostName = Parameter.builder().name("name").type(String.class).templated(true).build();
Parameter rolePostName = Parameter
.builder()
.name("name")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(rolePostName);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("setupAssignableRolePlace")
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -48,15 +48,24 @@ public class ShowAssignableRolePlaceConfig extends AbstractConditionableCommand
@Override
public CommandConfiguration getConfiguration() {
Parameter rolePostName = Parameter.builder().name("name").type(String.class).templated(true).build();
Parameter rolePostName = Parameter
.builder()
.name("name")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(rolePostName);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("showAssignableRolePlaceConfig")
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.async(true)
.causesReaction(false)
.messageCommandOnly(true)
.supportsEmbedException(true)
.parameters(parameters)
.help(helpInfo)

View File

@@ -45,11 +45,15 @@ public class ShowAssignableRolePlaces extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("showAssignableRolePlaces")
.module(AssignableRoleModuleDefinition.ASSIGNABLE_ROLES)
.templated(true)
.messageCommandOnly(true)
.async(true)
.supportsEmbedException(true)
.help(helpInfo)

View File

@@ -89,6 +89,7 @@ public class CreateCustomCommand extends AbstractConditionableCommand {
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.async(true)
.slashCommandOnly(true)
.slashCommandConfig(slashCommandConfig)
.causesReaction(true)
.supportsEmbedException(true)

View File

@@ -48,11 +48,6 @@ public class DeleteCustomCommand extends AbstractConditionableCommand {
.thenApply(interactionHook -> CommandResult.fromSuccess());
}
@Override
public FeatureDefinition getFeature() {
return CustomCommandFeatureDefinition.CUSTOM_COMMAND;
}
@Override
public CommandConfiguration getConfiguration() {
Parameter commandNameParameter = Parameter
@@ -82,9 +77,15 @@ public class DeleteCustomCommand extends AbstractConditionableCommand {
.async(true)
.slashCommandConfig(slashCommandConfig)
.causesReaction(true)
.slashCommandOnly(true)
.supportsEmbedException(true)
.parameters(parameters)
.help(helpInfo)
.build();
}
@Override
public FeatureDefinition getFeature() {
return CustomCommandFeatureDefinition.CUSTOM_COMMAND;
}
}

View File

@@ -104,6 +104,7 @@ public class GetCustomCommand extends AbstractConditionableCommand {
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.async(true)
.slashCommandOnly(true)
.slashCommandConfig(slashCommandConfig)
.causesReaction(true)
.supportsEmbedException(true)

View File

@@ -76,6 +76,7 @@ public class ListCustomCommands extends AbstractConditionableCommand {
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.async(true)
.slashCommandOnly(true)
.slashCommandConfig(slashCommandConfig)
.causesReaction(true)
.supportsEmbedException(true)

View File

@@ -52,14 +52,28 @@ public class React extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("message").type(Message.class).templated(true).build());
parameters.add(Parameter.builder().name("text").type(String.class).remainder(true).templated(true).build());
Parameter messageParameter = Parameter
.builder()
.name("message")
.type(Message.class)
.templated(true)
.build();
parameters.add(messageParameter);
Parameter textParameter = Parameter
.builder()
.name("text")
.type(String.class)
.remainder(true)
.templated(true)
.build();
parameters.add(textParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("react")
.module(EntertainmentModuleDefinition.ENTERTAINMENT)
.templated(true)
.causesReaction(true)
.messageCommandOnly(true)
.async(true)
.supportsEmbedException(true)
.parameters(parameters)

View File

@@ -69,6 +69,7 @@ public class SetExpRole extends AbstractConditionableCommand {
.module(ExperienceModuleDefinition.EXPERIENCE)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.requiresConfirmation(true)

View File

@@ -46,7 +46,10 @@ public class SyncRoles extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("syncExpRoles")
.module(ExperienceModuleDefinition.EXPERIENCE)
@@ -54,6 +57,7 @@ public class SyncRoles extends AbstractConditionableCommand {
.async(true)
.requiresConfirmation(true)
.supportsEmbedException(true)
.messageCommandOnly(true)
.causesReaction(true)
.parameters(parameters)
.help(helpInfo)

View File

@@ -59,13 +59,20 @@ public class UnSetExpRole extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("role").templated(true).type(ARole.class).build());
Parameter roleParameter = Parameter
.builder()
.name("role")
.templated(true)
.type(ARole.class)
.build();
parameters.add(roleParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("unSetExpRole")
.module(ExperienceModuleDefinition.EXPERIENCE)
.templated(true)
.async(true)
.messageCommandOnly(true)
.causesReaction(true)
.requiresConfirmation(true)
.supportsEmbedException(true)

View File

@@ -33,13 +33,20 @@ public class AllowInvite extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("invite").type(String.class).templated(true).build());
Parameter inviteParameter = Parameter
.builder()
.name("invite")
.type(String.class)
.templated(true)
.build();
parameters.add(inviteParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("allowInvite")
.module(InviteFilterModerationModuleDefinition.MODERATION)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -33,12 +33,19 @@ public class DisAllowInvite extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("invite").type(String.class).templated(true).build());
Parameter inviteParameter = Parameter
.builder()
.name("invite")
.type(String.class)
.templated(true)
.build();
parameters.add(inviteParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("disAllowInvite")
.module(InviteFilterModerationModuleDefinition.MODERATION)
.templated(true)
.messageCommandOnly(true)
.async(true)
.supportsEmbedException(true)
.causesReaction(true)

View File

@@ -44,13 +44,21 @@ public class RemoveTrackedInviteLinks extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("invite").type(String.class).optional(true).templated(true).build());
Parameter inviteParameter = Parameter
.builder()
.name("invite")
.type(String.class)
.optional(true)
.templated(true)
.build();
parameters.add(inviteParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("removeTrackedInviteLinks")
.module(InviteFilterModerationModuleDefinition.MODERATION)
.templated(true)
.async(true)
.messageCommandOnly(true)
.requiresConfirmation(true)
.supportsEmbedException(true)
.causesReaction(true)

View File

@@ -61,13 +61,21 @@ public class ShowTrackedInviteLinks extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("amount").type(Integer.class).optional(true).templated(true).build());
Parameter amountParameter = Parameter
.builder()
.name("amount")
.type(Integer.class)
.optional(true)
.templated(true)
.build();
parameters.add(amountParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("showTrackedInviteLinks")
.module(InviteFilterModerationModuleDefinition.MODERATION)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.parameters(parameters)
.help(helpInfo)

View File

@@ -65,15 +65,35 @@ public class BanDelete extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("user").templated(true).type(User.class).build());
parameters.add(Parameter.builder().name("delDays").templated(true).type(Integer.class).build());
parameters.add(Parameter.builder().name("reason").templated(true).type(String.class).remainder(true).build());
Parameter userParameter = Parameter
.builder()
.name("user")
.templated(true)
.type(User.class)
.build();
parameters.add(userParameter);
Parameter delDaysParameter = Parameter
.builder()
.name("delDays")
.templated(true)
.type(Integer.class)
.build();
parameters.add(delDaysParameter);
Parameter reasonParameter = Parameter
.builder()
.name("reason")
.templated(true)
.type(String.class)
.remainder(true)
.build();
parameters.add(reasonParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
List<EffectConfig> effectConfig = Arrays.asList(EffectConfig.builder().position(0).effectKey(BAN_EFFECT_KEY).build());
return CommandConfiguration.builder()
.name("banDelete")
.module(ModerationModuleDefinition.MODERATION)
.templated(true)
.messageCommandOnly(true)
.async(true)
.effects(effectConfig)
.supportsEmbedException(true)

View File

@@ -84,6 +84,7 @@ public class EditInfraction extends AbstractConditionableCommand {
.templated(true)
.async(true)
.causesReaction(false)
.slashCommandOnly(true)
.slashCommandConfig(slashCommandConfig)
.supportsEmbedException(true)
.parameters(parameters)

View File

@@ -75,9 +75,6 @@ public class Infractions extends AbstractConditionableCommand {
@Autowired
private SlashCommandParameterService slashCommandParameterService;
@Autowired
private UserService userService;
@Override
public CompletableFuture<CommandResult> executeAsync(CommandContext commandContext) {
List<Infraction> infractions;

View File

@@ -60,7 +60,14 @@ public class AnonReply extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter responseText = Parameter.builder().name("text").type(String.class).remainder(true).optional(true).templated(true).build();
Parameter responseText = Parameter
.builder()
.name("text")
.type(String.class)
.remainder(true)
.optional(true)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(responseText);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
@@ -68,6 +75,7 @@ public class AnonReply extends AbstractConditionableCommand {
.async(true)
.module(ModMailModuleDefinition.MODMAIL)
.parameters(parameters)
.messageCommandOnly(true)
.supportsEmbedException(true)
.help(helpInfo)
.templated(true)

View File

@@ -66,12 +66,20 @@ public class CloseSilently extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter note = Parameter.builder().name("note").type(String.class).remainder(true).optional(true).templated(true).build();
Parameter note = Parameter
.builder()
.name("note")
.type(String.class)
.remainder(true)
.optional(true)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(note);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("closeSilently")
.async(true)
.messageCommandOnly(true)
.module(ModMailModuleDefinition.MODMAIL)
.parameters(parameters)
.help(helpInfo)

View File

@@ -36,14 +36,23 @@ public class RemoveModMailRole extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter categoryId = Parameter.builder().name("role").type(ARole.class).templated(true).build();
Parameter categoryId = Parameter
.builder()
.name("role")
.type(ARole.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(categoryId);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
List<String> aliases = Arrays.asList("rmMmRole");
return CommandConfiguration.builder()
.name("removeModMailRole")
.module(ModMailModuleDefinition.MODMAIL)
.aliases(aliases)
.messageCommandOnly(true)
.supportsEmbedException(true)
.parameters(parameters)
.help(helpInfo)

View File

@@ -58,11 +58,19 @@ public class Reply extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter responseText = Parameter.builder().name("text").type(String.class).remainder(true).optional(true).templated(true).build();
Parameter responseText = Parameter
.builder()
.name("text")
.type(String.class)
.remainder(true)
.optional(true)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(responseText);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("reply")
.messageCommandOnly(true)
.async(true)
.module(ModMailModuleDefinition.MODMAIL)
.parameters(parameters)

View File

@@ -34,12 +34,21 @@ public class SetModMailCategory extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter categoryId = Parameter.builder().name("categoryId").type(Long.class).templated(true).build();
Parameter categoryId = Parameter
.builder()
.name("categoryId")
.type(Long.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(categoryId);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo.
builder()
.templated(true)
.build();
List<String> aliases = Arrays.asList("modMailCat");
return CommandConfiguration.builder()
.name("setModMailCategory")
.messageCommandOnly(true)
.module(ModMailModuleDefinition.MODMAIL)
.aliases(aliases)
.supportsEmbedException(true)

View File

@@ -46,14 +46,23 @@ public class SetModMailRole extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter categoryId = Parameter.builder().name("role").type(Role.class).templated(true).build();
Parameter categoryId = Parameter
.builder()
.name("role")
.type(Role.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(categoryId);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
List<String> aliases = Arrays.asList("modMailRole");
return CommandConfiguration.builder()
.name("setModMailRole")
.module(ModMailModuleDefinition.MODMAIL)
.aliases(aliases)
.messageCommandOnly(true)
.supportsEmbedException(true)
.parameters(parameters)
.help(helpInfo)

View File

@@ -67,13 +67,23 @@ public class Profanities extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter memberParameter = Parameter.builder().templated(true).name("member").type(Member.class).optional(true).build();
Parameter memberParameter = Parameter
.builder()
.templated(true)
.name("member")
.type(Member.class)
.optional(true)
.build();
List<Parameter> parameters = Collections.singletonList(memberParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("profanities")
.module(ProfanityFilterModerationModuleDefinition.MODERATION)
.templated(true)
.messageCommandOnly(true)
.async(true)
.causesReaction(false)
.parameters(parameters)

View File

@@ -45,7 +45,12 @@ public class DisableRepostCheck extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter channelToSet = Parameter.builder().name("channelGroup").type(AChannelGroup.class).templated(true).build();
Parameter channelToSet = Parameter
.builder()
.name("channelGroup")
.type(AChannelGroup.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(channelToSet);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
@@ -53,6 +58,7 @@ public class DisableRepostCheck extends AbstractConditionableCommand {
.module(RepostDetectionModuleDefinition.REPOST_DETECTION)
.templated(true)
.async(false)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -45,7 +45,12 @@ public class EnableRepostCheck extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter channelToSet = Parameter.builder().name("channelGroup").type(AChannelGroup.class).templated(true).build();
Parameter channelToSet = Parameter
.builder()
.name("channelGroup")
.type(AChannelGroup.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(channelToSet);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
@@ -53,6 +58,7 @@ public class EnableRepostCheck extends AbstractConditionableCommand {
.module(RepostDetectionModuleDefinition.REPOST_DETECTION)
.templated(true)
.async(false)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -42,13 +42,23 @@ public class PurgeImagePosts extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter channelToSet = Parameter.builder().name("member").type(AUserInAServer.class).templated(true).optional(true).build();
Parameter channelToSet = Parameter
.builder()
.name("member")
.type(AUserInAServer.class)
.templated(true)
.optional(true)
.build();
List<Parameter> parameters = Arrays.asList(channelToSet);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("purgeImagePosts")
.module(RepostDetectionModuleDefinition.REPOST_DETECTION)
.templated(true)
.messageCommandOnly(true)
.async(false)
.requiresConfirmation(true)
.supportsEmbedException(true)

View File

@@ -42,7 +42,13 @@ public class PurgeReposts extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter channelToSet = Parameter.builder().name("member").type(AUserInAServer.class).templated(true).optional(true).build();
Parameter channelToSet = Parameter
.builder()
.name("member")
.type(AUserInAServer.class)
.templated(true)
.optional(true)
.build();
List<Parameter> parameters = Arrays.asList(channelToSet);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
@@ -51,6 +57,7 @@ public class PurgeReposts extends AbstractConditionableCommand {
.templated(true)
.async(false)
.requiresConfirmation(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -75,14 +75,24 @@ public class RepostLeaderboard extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter channelToSet = Parameter.builder().name("page").type(Integer.class).templated(true).optional(true).build();
Parameter channelToSet = Parameter
.builder()
.name("page")
.type(Integer.class)
.templated(true)
.optional(true)
.build();
List<Parameter> parameters = Arrays.asList(channelToSet);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("repostLeaderboard")
.module(RepostDetectionModuleDefinition.REPOST_DETECTION)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -43,11 +43,15 @@ public class ShowRepostCheckChannels extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("showRepostCheckChannels")
.module(RepostDetectionModuleDefinition.REPOST_DETECTION)
.templated(true)
.messageCommandOnly(true)
.async(true)
.supportsEmbedException(true)
.causesReaction(false)

View File

@@ -43,7 +43,13 @@ public class DeleteTrackedEmote extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("trackedEmote").templated(true).type(TrackedEmote.class).build());
Parameter trackedEmoteParameter = Parameter
.builder()
.name("trackedEmote")
.templated(true)
.type(TrackedEmote.class)
.build();
parameters.add(trackedEmoteParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("deleteTrackedEmote")
@@ -51,6 +57,7 @@ public class DeleteTrackedEmote extends AbstractConditionableCommand {
.templated(true)
.supportsEmbedException(true)
.causesReaction(true)
.messageCommandOnly(true)
.requiresConfirmation(true)
.parameters(parameters)
.help(helpInfo)

View File

@@ -82,7 +82,14 @@ public class DeletedEmoteStats extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("period").templated(true).optional(true).type(Duration.class).build());
Parameter periodParameter = Parameter
.builder()
.name("period")
.templated(true)
.optional(true)
.type(Duration.class)
.build();
parameters.add(periodParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("deletedEmoteStats")
@@ -90,6 +97,7 @@ public class DeletedEmoteStats extends AbstractConditionableCommand {
.templated(true)
.async(true)
.supportsEmbedException(true)
.messageCommandOnly(true)
.causesReaction(true)
.parameters(parameters)
.help(helpInfo)

View File

@@ -47,12 +47,20 @@ public class DisableEmoteTracking extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("trackedEmote").templated(true).optional(true).type(TrackedEmote.class).build());
Parameter trackedEmoteParameter = Parameter
.builder()
.name("trackedEmote")
.templated(true)
.optional(true)
.type(TrackedEmote.class)
.build();
parameters.add(trackedEmoteParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("disableEmoteTracking")
.module(EmoteTrackingModuleDefinition.EMOTE_TRACKING)
.templated(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -66,14 +66,28 @@ public class EmoteStat extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("trackedEmote").templated(true).type(TrackedEmote.class).build());
parameters.add(Parameter.builder().name("period").templated(true).optional(true).type(Duration.class).build());
Parameter trackedEmoteParameter = Parameter
.builder()
.name("trackedEmote")
.templated(true)
.type(TrackedEmote.class)
.build();
parameters.add(trackedEmoteParameter);
Parameter periodParameter = Parameter
.builder()
.name("period")
.templated(true)
.optional(true)
.type(Duration.class)
.build();
parameters.add(periodParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("emoteStat")
.module(EmoteTrackingModuleDefinition.EMOTE_TRACKING)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -83,12 +83,20 @@ public class EmoteStats extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("period").templated(true).optional(true).type(Duration.class).build());
Parameter periodParameter = Parameter
.builder()
.name("period")
.templated(true)
.optional(true)
.type(Duration.class)
.build();
parameters.add(periodParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("emoteStats")
.module(EmoteTrackingModuleDefinition.EMOTE_TRACKING)
.templated(true)
.messageCommandOnly(true)
.async(true)
.supportsEmbedException(true)
.causesReaction(true)

View File

@@ -97,13 +97,24 @@ public class ExportEmoteStats extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("period").templated(true).optional(true).type(Duration.class).build());
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
Parameter periodParameter = Parameter
.builder()
.name("period")
.templated(true)
.optional(true)
.type(Duration.class)
.build();
parameters.add(periodParameter);
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("exportEmoteStats")
.module(EmoteTrackingModuleDefinition.EMOTE_TRACKING)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -88,12 +88,23 @@ public class ExternalEmoteStats extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("period").templated(true).optional(true).type(Duration.class).build());
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
Parameter periodParameter = Parameter
.builder()
.name("period")
.templated(true)
.optional(true)
.type(Duration.class)
.build();
parameters.add(periodParameter);
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("externalEmoteStats")
.module(EmoteTrackingModuleDefinition.EMOTE_TRACKING)
.templated(true)
.messageCommandOnly(true)
.async(true)
.supportsEmbedException(true)
.causesReaction(true)

View File

@@ -52,13 +52,27 @@ public class PurgeEmoteStats extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("trackedEmote").templated(true).type(TrackedEmote.class).build());
parameters.add(Parameter.builder().name("period").templated(true).optional(true).type(Duration.class).build());
Parameter trackedEmoteParameter = Parameter
.builder()
.name("trackedEmote")
.templated(true)
.type(TrackedEmote.class)
.build();
parameters.add(trackedEmoteParameter);
Parameter periodParameter = Parameter
.builder()
.name("period")
.templated(true)
.optional(true)
.type(Duration.class)
.build();
parameters.add(periodParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("purgeEmoteStats")
.module(EmoteTrackingModuleDefinition.EMOTE_TRACKING)
.templated(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.requiresConfirmation(true)
.causesReaction(true)

View File

@@ -38,6 +38,7 @@ public class ResetEmoteStats extends AbstractConditionableCommand {
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("resetEmoteStats")
.messageCommandOnly(true)
.module(EmoteTrackingModuleDefinition.EMOTE_TRACKING)
.templated(true)
.supportsEmbedException(true)

View File

@@ -55,13 +55,20 @@ public class ShowExternalTrackedEmote extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("trackedEmote").templated(true).type(TrackedEmote.class).build());
Parameter trackedEmoteParameter = Parameter
.builder()
.name("trackedEmote")
.templated(true)
.type(TrackedEmote.class)
.build();
parameters.add(trackedEmoteParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("showExternalTrackedEmote")
.module(EmoteTrackingModuleDefinition.EMOTE_TRACKING)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -114,12 +114,20 @@ public class ShowTrackedEmotes extends AbstractConditionableCommand {
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
parameters.add(Parameter.builder().name("showAll").templated(true).optional(true).type(Boolean.class).build());
Parameter showAllParameter = Parameter
.builder()
.name("showAll")
.templated(true)
.optional(true)
.type(Boolean.class)
.build();
parameters.add(showAllParameter);
return CommandConfiguration.builder()
.name("showTrackedEmotes")
.module(EmoteTrackingModuleDefinition.EMOTE_TRACKING)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -46,11 +46,15 @@ public class SyncTrackedEmotes extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("syncTrackedEmotes")
.module(EmoteTrackingModuleDefinition.EMOTE_TRACKING)
.templated(true)
.messageCommandOnly(true)
.async(true)
.supportsEmbedException(true)
.causesReaction(true)

View File

@@ -69,12 +69,19 @@ public class TrackEmote extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<Parameter> parameters = new ArrayList<>();
parameters.add(Parameter.builder().name("emote").templated(true).type(TrackEmoteParameter.class).build());
Parameter emoteParameter = Parameter
.builder()
.name("emote")
.templated(true)
.type(TrackEmoteParameter.class)
.build();
parameters.add(emoteParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("trackEmote")
.module(EmoteTrackingModuleDefinition.EMOTE_TRACKING)
.templated(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -80,6 +80,7 @@ public class CancelPoll extends AbstractConditionableCommand {
.name(CANCEL_POLL_COMMAND)
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.slashCommandOnly(true)
.slashCommandConfig(slashCommandConfig)
.async(true)
.supportsEmbedException(true)

View File

@@ -54,11 +54,6 @@ public class ClosePoll extends AbstractConditionableCommand {
.thenApply(aVoid -> CommandResult.fromSuccess());
}
@Override
public FeatureDefinition getFeature() {
return SuggestionFeatureDefinition.POLL;
}
@Override
public CommandConfiguration getConfiguration() {
List<ParameterValidator> pollIdValidator = Arrays.asList(MinIntegerValueValidator.min(1L));
@@ -94,6 +89,7 @@ public class ClosePoll extends AbstractConditionableCommand {
return CommandConfiguration.builder()
.name(CLOSE_POLL_COMMAND)
.slashCommandOnly(true)
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.slashCommandConfig(slashCommandConfig)
@@ -104,4 +100,9 @@ public class ClosePoll extends AbstractConditionableCommand {
.help(helpInfo)
.build();
}
@Override
public FeatureDefinition getFeature() {
return SuggestionFeatureDefinition.POLL;
}
}

View File

@@ -156,6 +156,7 @@ public class Poll extends AbstractConditionableCommand {
.name(POLL_COMMAND)
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.slashCommandOnly(true)
.async(true)
.slashCommandConfig(slashCommandConfig)
.supportsEmbedException(true)

View File

@@ -141,6 +141,7 @@ public class QuickPoll extends AbstractConditionableCommand {
.name(POLL_COMMAND)
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.slashCommandOnly(true)
.async(true)
.slashCommandConfig(slashCommandConfig)
.supportsEmbedException(true)

View File

@@ -81,6 +81,7 @@ public class ShowPoll extends AbstractConditionableCommand {
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.async(true)
.slashCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(false)
.parameters(parameters)

View File

@@ -119,6 +119,7 @@ public class AddTwitchStreamer extends AbstractConditionableCommand {
.slashCommandConfig(slashCommandConfig)
.supportsEmbedException(true)
.causesReaction(true)
.slashCommandOnly(true)
.parameters(parameters)
.help(helpInfo)
.build();

View File

@@ -148,6 +148,7 @@ public class ChangeTwitchStreamer extends AbstractConditionableCommand {
.name(CHANGE_STREAMER_COMMAND)
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.slashCommandOnly(true)
.async(true)
.slashCommandConfig(slashCommandConfig)
.supportsEmbedException(true)

View File

@@ -58,6 +58,7 @@ public class ListTwitchStreamer extends AbstractConditionableCommand {
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.async(true)
.slashCommandOnly(true)
.slashCommandConfig(slashCommandConfig)
.supportsEmbedException(true)
.causesReaction(true)

View File

@@ -76,6 +76,7 @@ public class RemoveTwitchStreamer extends AbstractConditionableCommand {
.async(true)
.slashCommandConfig(slashCommandConfig)
.supportsEmbedException(true)
.slashCommandOnly(true)
.causesReaction(true)
.parameters(parameters)
.help(helpInfo)

View File

@@ -70,6 +70,7 @@ public class ShowEmote extends AbstractConditionableCommand {
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(false)
.parameters(parameters)

View File

@@ -35,14 +35,28 @@ public class CreateVoiceChannelContext extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter voiceChannel = Parameter.builder().name("voiceChannel").type(VoiceChannel.class).templated(true).build();
Parameter contextRole = Parameter.builder().name("role").type(Role.class).templated(true).build();
Parameter voiceChannel = Parameter
.builder()
.name("voiceChannel")
.type(VoiceChannel.class)
.templated(true)
.build();
Parameter contextRole = Parameter
.builder()
.name("role")
.type(Role.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(voiceChannel, contextRole);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("createVoiceChannelContext")
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -38,13 +38,19 @@ public class DeleteVoiceChannelContext extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter voiceChannel = Parameter.builder().name("channel").type(AChannel.class).templated(true).build();
Parameter voiceChannel = Parameter
.builder()
.name("channel")
.type(AChannel.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(voiceChannel);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("deleteVoiceChannelContext")
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.causesReaction(true)
.parameters(parameters)

View File

@@ -83,6 +83,7 @@ public class ThreadReaderCommand extends AbstractConditionableCommand {
.module(UtilityModuleDefinition.UTILITY)
.templated(true)
.async(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.parameters(parameters)
.help(helpInfo)

View File

@@ -31,15 +31,29 @@ public class AddCommandToChannelGroup extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter channelGroupName = Parameter.builder().name("channelGroupName").type(String.class).templated(true).build();
Parameter commandName = Parameter.builder().name("commandName").type(String.class).templated(true).build();
Parameter channelGroupName = Parameter
.builder()
.name("channelGroupName")
.type(String.class)
.templated(true)
.build();
Parameter commandName = Parameter
.builder()
.name("commandName")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(channelGroupName, commandName);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("addCommandToChannelGroup")
.module(ChannelsModuleDefinition.CHANNELS)
.parameters(parameters)
.supportsEmbedException(true)
.messageCommandOnly(true)
.help(helpInfo)
.templated(true)
.causesReaction(true)

View File

@@ -32,14 +32,29 @@ public class DisableCommand extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter commandName = Parameter.builder().name("commandName").type(String.class).templated(true).build();
Parameter channelGroupName = Parameter.builder().name("channelGroupName").type(String.class).templated(true).build();
Parameter commandName = Parameter
.builder()
.name("commandName")
.type(String.class)
.templated(true)
.build();
Parameter channelGroupName = Parameter
.builder()
.name("channelGroupName")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(commandName, channelGroupName);
HelpInfo helpInfo = HelpInfo.builder().templated(true).hasExample(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.hasExample(true)
.build();
return CommandConfiguration.builder()
.name("disableCommand")
.module(ChannelsModuleDefinition.CHANNELS)
.parameters(parameters)
.messageCommandOnly(true)
.supportsEmbedException(true)
.help(helpInfo)
.templated(true)

View File

@@ -32,14 +32,25 @@ public class EnableCommand extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter commandName = Parameter.builder().name("commandName").type(String.class).templated(true).build();
Parameter channelGroupname = Parameter.builder().name("channelGroupName").type(String.class).templated(true).build();
List<Parameter> parameters = Arrays.asList(commandName, channelGroupname);
Parameter commandName = Parameter
.builder()
.name("commandName")
.type(String.class)
.templated(true)
.build();
Parameter channelGroupName = Parameter
.builder()
.name("channelGroupName")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(commandName, channelGroupName);
HelpInfo helpInfo = HelpInfo.builder().templated(true).hasExample(true).build();
return CommandConfiguration.builder()
.name("enableCommand")
.module(ChannelsModuleDefinition.CHANNELS)
.parameters(parameters)
.messageCommandOnly(true)
.supportsEmbedException(true)
.templated(true)
.help(helpInfo)

View File

@@ -31,13 +31,24 @@ public class RemoveCommandFromChannelGroup extends AbstractConditionableCommand
@Override
public CommandConfiguration getConfiguration() {
Parameter channelGroupName = Parameter.builder().name("channelGroupName").type(String.class).templated(true).build();
Parameter commandName = Parameter.builder().name("commandName").type(String.class).templated(true).build();
Parameter channelGroupName = Parameter
.builder()
.name("channelGroupName")
.type(String.class)
.templated(true)
.build();
Parameter commandName = Parameter
.builder()
.name("commandName")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(channelGroupName, commandName);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("removeCommandFromChannelGroup")
.module(ChannelsModuleDefinition.CHANNELS)
.messageCommandOnly(true)
.parameters(parameters)
.supportsEmbedException(true)
.help(helpInfo)

View File

@@ -32,15 +32,29 @@ public class CreateAlias extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter commandNameParameter = Parameter.builder().name("commandName").type(String.class).templated(true).build();
Parameter aliasParameter = Parameter.builder().name("alias").type(String.class).templated(true).build();
Parameter commandNameParameter = Parameter
.builder()
.name("commandName")
.type(String.class)
.templated(true)
.build();
Parameter aliasParameter = Parameter
.builder()
.name("alias")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(commandNameParameter, aliasParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("createAlias")
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.templated(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.help(helpInfo)
.causesReaction(true)

View File

@@ -31,14 +31,23 @@ public class DeleteAlias extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter aliasParameter = Parameter.builder().name("alias").type(String.class).templated(true).build();
Parameter aliasParameter = Parameter
.builder()
.name("alias")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(aliasParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("deleteAlias")
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.templated(true)
.messageCommandOnly(true)
.requiresConfirmation(true)
.supportsEmbedException(true)
.help(helpInfo)

View File

@@ -30,13 +30,19 @@ public class SetAdminMode extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter valueToSet = Parameter.builder().name("value").type(Boolean.class).templated(true).build();
Parameter valueToSet = Parameter
.builder()
.name("value")
.type(Boolean.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(valueToSet);
HelpInfo helpInfo = HelpInfo.builder().templated(true).hasExample(true).build();
return CommandConfiguration.builder()
.name("setAdminMode")
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.messageCommandOnly(true)
.templated(true)
.supportsEmbedException(true)
.help(helpInfo)

View File

@@ -33,11 +33,21 @@ public class SetPrefix extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
List<ParameterValidator> validators = Arrays.asList(MaxStringLengthValidator.max(10L));
Parameter newPrefixParameter = Parameter.builder().name("prefix").validators(validators).type(String.class).templated(true).build();
Parameter newPrefixParameter = Parameter
.builder()
.name("prefix")
.validators(validators)
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(newPrefixParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("setPrefix")
.messageCommandOnly(true)
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.supportsEmbedException(true)

View File

@@ -26,11 +26,15 @@ public class ClearCommandCoolDowns extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("clearCommandCoolDowns")
.module(ConfigModuleDefinition.CONFIG)
.templated(true)
.messageCommandOnly(true)
.help(helpInfo)
.causesReaction(true)
.build();

View File

@@ -49,15 +49,31 @@ public class CommandCoolDownChannelGroup extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter channelGroupName = Parameter.builder().name("channelGroupName").templated(true).type(AChannelGroup.class).build();
Parameter channelDuration = Parameter.builder().name("channelDuration").templated(true).type(Duration.class).build();
Parameter memberDuration = Parameter.builder().name("memberDuration").templated(true).type(Duration.class).build();
Parameter channelGroupName = Parameter
.builder()
.name("channelGroupName")
.templated(true)
.type(AChannelGroup.class)
.build();
Parameter channelDuration = Parameter
.builder()
.name("channelDuration")
.templated(true)
.type(Duration.class)
.build();
Parameter memberDuration = Parameter
.builder()
.name("memberDuration")
.templated(true)
.type(Duration.class)
.build();
List<Parameter> parameters = Arrays.asList(channelGroupName, channelDuration, memberDuration);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("commandCoolDownChannelGroup")
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.messageCommandOnly(true)
.templated(true)
.help(helpInfo)
.causesReaction(true)

View File

@@ -42,14 +42,25 @@ public class CommandCoolDownServer extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter commandName = Parameter.builder().name("command").templated(true).type(String.class).build();
Parameter coolDownDuration = Parameter.builder().name("duration").templated(true).type(Duration.class).build();
Parameter commandName = Parameter
.builder()
.name("command")
.templated(true)
.type(String.class)
.build();
Parameter coolDownDuration = Parameter
.builder()
.name("duration")
.templated(true)
.type(Duration.class)
.build();
List<Parameter> parameters = Arrays.asList(commandName, coolDownDuration);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("commandCoolDownServer")
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.messageCommandOnly(true)
.templated(true)
.help(helpInfo)
.causesReaction(true)

View File

@@ -73,6 +73,7 @@ public class RemoveCommandMemberCooldown extends AbstractConditionableCommand {
.parameters(parameters)
.slashCommandConfig(slashCommandConfig)
.templated(true)
.slashCommandOnly(true)
.supportsEmbedException(true)
.help(helpInfo)
.causesReaction(true)

View File

@@ -82,6 +82,7 @@ public class SetCommandMemberCooldown extends AbstractConditionableCommand {
.name(SET_COMMAND_MEMBER_COOLDOWN)
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.slashCommandOnly(true)
.slashCommandConfig(slashCommandConfig)
.templated(true)
.supportsEmbedException(true)

View File

@@ -63,11 +63,17 @@ public class Allow extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter featureName = Parameter.builder().name("component").templated(true).type(String.class).build();
Parameter featureName = Parameter
.builder()
.name("component")
.templated(true)
.type(String.class)
.build();
List<Parameter> parameters = Arrays.asList(featureName);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("allow")
.messageCommandOnly(true)
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.templated(true)

View File

@@ -68,16 +68,31 @@ public class AllowRole extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter featureName = Parameter.builder().name("component").type(String.class).templated(true).build();
Parameter role = Parameter.builder().name("role").type(ARole.class).templated(true).build();
Parameter featureName = Parameter
.builder()
.name("component")
.type(String.class)
.templated(true)
.build();
Parameter role = Parameter
.builder()
.name("role")
.type(ARole.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(featureName, role);
HelpInfo helpInfo = HelpInfo.builder().templated(true).hasExample(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.hasExample(true)
.build();
return CommandConfiguration.builder()
.name("allowRole")
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.templated(true)
.help(helpInfo)
.messageCommandOnly(true)
.causesReaction(true)
.build();
}

View File

@@ -68,15 +68,30 @@ public class DisAllowRole extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter featureName = Parameter.builder().name("component").type(String.class).templated(true).build();
Parameter role = Parameter.builder().name("role").type(ARole.class).templated(true).build();
Parameter featureName = Parameter
.builder()
.name("component")
.type(String.class)
.templated(true)
.build();
Parameter role = Parameter
.builder()
.name("role")
.type(ARole.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(featureName, role);
HelpInfo helpInfo = HelpInfo.builder().templated(true).hasExample(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.hasExample(true)
.build();
return CommandConfiguration.builder()
.name("disAllowRole")
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.help(helpInfo)
.messageCommandOnly(true)
.templated(true)
.causesReaction(true)
.build();

View File

@@ -68,11 +68,17 @@ public class Restrict extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter featureName = Parameter.builder().name("component").type(String.class).templated(true).build();
Parameter featureName = Parameter
.builder()
.name("component")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(featureName);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("restrict")
.messageCommandOnly(true)
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.templated(true)

View File

@@ -57,13 +57,21 @@ public class SetupFeature extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter newPrefixParameter = Parameter.builder().name("feature").type(String.class).build();
Parameter newPrefixParameter = Parameter
.builder()
.name("feature")
.type(String.class)
.build();
List<Parameter> parameters = Arrays.asList(newPrefixParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("setupFeature")
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.messageCommandOnly(true)
.templated(true)
.async(true)
.supportsEmbedException(true)

View File

@@ -32,13 +32,19 @@ public class AllowMention extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter mentionTypeParameter = Parameter.builder().name("mentionType").type(String.class).templated(true).build();
Parameter mentionTypeParameter = Parameter
.builder()
.name("mentionType")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(mentionTypeParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
return CommandConfiguration.builder()
.name("allowMention")
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.messageCommandOnly(true)
.templated(true)
.supportsEmbedException(true)
.help(helpInfo)

View File

@@ -33,14 +33,23 @@ public class DisallowMention extends AbstractConditionableCommand {
@Override
public CommandConfiguration getConfiguration() {
Parameter mentionTypeParameter = Parameter.builder().name("mentionType").type(String.class).templated(true).build();
Parameter mentionTypeParameter = Parameter
.builder()
.name("mentionType")
.type(String.class)
.templated(true)
.build();
List<Parameter> parameters = Arrays.asList(mentionTypeParameter);
HelpInfo helpInfo = HelpInfo.builder().templated(true).build();
HelpInfo helpInfo = HelpInfo
.builder()
.templated(true)
.build();
return CommandConfiguration.builder()
.name("disallowMention")
.module(ConfigModuleDefinition.CONFIG)
.parameters(parameters)
.templated(true)
.messageCommandOnly(true)
.supportsEmbedException(true)
.help(helpInfo)
.causesReaction(true)

View File

@@ -176,7 +176,7 @@ public class Help extends AbstractConditionableCommand {
.getEffects()
.stream()
.map(EffectConfig::getEffectKey)
.collect(Collectors.toList());
.toList();
if(!effects.isEmpty()) {
model.setEffects(effects);
}
@@ -237,6 +237,7 @@ public class Help extends AbstractConditionableCommand {
.module(SupportModuleDefinition.SUPPORT)
.parameters(Collections.singletonList(moduleOrCommandName))
.help(helpInfo)
.messageCommandOnly(true)
.templated(true)
.causesReaction(true)
.build();

View File

@@ -0,0 +1,10 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog dbchangelog.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext dbchangelog.xsd
http://www.liquibase.org/xml/ns/pro dbchangelog.xsd">
<include file="tables/tables.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>

View File

@@ -0,0 +1,14 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog dbchangelog.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext dbchangelog.xsd
http://www.liquibase.org/xml/ns/pro dbchangelog.xsd" >
<changeSet author="Sheldan" id="custom_template-resize_content">
<modifyDataType columnName="content"
newDataType="VARCHAR(16000)"
tableName="custom_template"/>
</changeSet>
</databaseChangeLog>

View File

@@ -0,0 +1,11 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog dbchangelog.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext dbchangelog.xsd
http://www.liquibase.org/xml/ns/pro dbchangelog.xsd" >
<include file="template.xml" relativeToChangelogFile="true"/>
<include file="custom_template.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>

View File

@@ -0,0 +1,14 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog dbchangelog.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext dbchangelog.xsd
http://www.liquibase.org/xml/ns/pro dbchangelog.xsd" >
<changeSet author="Sheldan" id="template-resize_content">
<modifyDataType columnName="content"
newDataType="VARCHAR(16000)"
tableName="template"/>
</changeSet>
</databaseChangeLog>

View File

@@ -25,4 +25,5 @@
<include file="1.3.13/collection.xml" relativeToChangelogFile="true"/>
<include file="1.4.0/collection.xml" relativeToChangelogFile="true"/>
<include file="1.5.8/collection.xml" relativeToChangelogFile="true"/>
<include file="1.5.10/collection.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>

View File

@@ -42,6 +42,12 @@ public class CommandConfiguration {
@Builder.Default
private boolean supportsMessageCommand = true;
@Builder.Default
private boolean slashCommandOnly = false;
@Builder.Default
private boolean messageCommandOnly = false;
private CommandCoolDownConfig coolDownConfig;
@Builder.Default