mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-27 14:42:23 +00:00
[AB-xxx] adding information whether a command is slash/message command only to help output
resizing template content column
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user