[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

@@ -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)