Class SlashBuilder
java.lang.Object
de.chojo.jdautil.interactions.slash.structure.builder.SlashBuilder
- All Implemented Interfaces:
BuildableMetaBuilder, ExtendableRootBuilder, RootArgumentBuilder, RootMetaBuilder
public class SlashBuilder
extends Object
implements RootArgumentBuilder, ExtendableRootBuilder, RootMetaBuilder, BuildableMetaBuilder
Class which allows to create grouped commands.
The limitations are implemented as defined
here
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMarks a command as admin command.argument(ArgumentBuilder argument) build()command(SlashHandler handler) group(GroupBuilder builder) booleanMarks a command as public command.scope(InteractionScope scope) skus(Collection<SKU> skus) subCommand(SubCommandBuilder builder) withPermission(Permission permission, Permission... permissions) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RootMetaBuilder
globalCommand, privateCommand
-
Constructor Details
-
SlashBuilder
-
-
Method Details
-
group
- Specified by:
groupin interfaceExtendableRootBuilder
-
subCommand
- Specified by:
subCommandin interfaceExtendableRootBuilder
-
command
- Specified by:
commandin interfaceRootMetaBuilder
-
argument
- Specified by:
argumentin interfaceRootArgumentBuilder
-
skus
- Specified by:
skusin interfaceRootMetaBuilder
-
withPermission
- Specified by:
withPermissionin interfaceRootMetaBuilder
-
publicCommand
Marks a command as public command.This is the default value.
- Specified by:
publicCommandin interfaceRootMetaBuilder- Returns:
- builder
-
adminCommand
Marks a command as admin command.The command will only be accessible for administrators of a guild.
- Specified by:
adminCommandin interfaceRootMetaBuilder- Returns:
- builder
-
guildOnly
- Specified by:
guildOnlyin interfaceRootMetaBuilder
-
scope
- Specified by:
scopein interfaceRootMetaBuilder
-
unlocalized
- Specified by:
unlocalizedin interfaceRootMetaBuilder
-
localized
public boolean localized() -
build
- Specified by:
buildin interfaceBuildableMetaBuilder
-