Class CommandDefinition.CommandConfig.Builder
java.lang.Object
io.github.kaktushose.jdac.definitions.interactions.command.CommandDefinition.CommandConfig.Builder
- Enclosing class:
CommandDefinition.CommandConfig
Builder for
CommandDefinition.CommandConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontext(Collection<InteractionContextType> context) TheInteractionContextTypes to use.context(InteractionContextType... context) TheInteractionContextTypes to use.enabledPermissions(Collection<Permission> permissions) enabledPermissions(Permission... permissions) integration(Collection<IntegrationType> integration) TheIntegrationTypes to use.integration(IntegrationType... integration) TheIntegrationTypes to use.nsfw(boolean nsfw) scope(CommandScope scope)
-
Constructor Details
-
Builder
public Builder()Constructs a new Builder.
-
-
Method Details
-
context
TheInteractionContextTypes to use. This method will override this builders default valueInteractionContextType.GUILD.- Parameters:
context- theInteractionContextTypes to use
-
context
TheInteractionContextTypes to use. This method will override this builders default valueInteractionContextType.GUILD.- Parameters:
context- theInteractionContextTypes to use
-
integration
TheIntegrationTypes to use. This method will override this builders default valueIntegrationType.GUILD_INSTALL.- Parameters:
integration- theIntegrationTypes to use
-
integration
TheIntegrationTypes to use. This method will override this builders default valueIntegrationType.GUILD_INSTALL.- Parameters:
integration- theIntegrationTypes to use
-
scope
- Parameters:
scope- theCommandScopeto use
-
nsfw
- Parameters:
nsfw-trueif the configured command(s) can only be executed in NSFW channels
-
enabledPermissions
- Parameters:
permissions- The defaultPermissions the configured command(s) will be enabled for.
-
enabledPermissions
public CommandDefinition.CommandConfig.Builder enabledPermissions(Collection<Permission> permissions) - Parameters:
permissions- The defaultPermissions the configured command(s) will be enabled for.
-