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<net.dv8tion.jda.api.interactions.InteractionContextType> context) TheInteractionContextTypes to use.context(net.dv8tion.jda.api.interactions.InteractionContextType... context) TheInteractionContextTypes to use.enabledPermissions(Collection<net.dv8tion.jda.api.Permission> permissions) enabledPermissions(net.dv8tion.jda.api.Permission... permissions) integration(Collection<net.dv8tion.jda.api.interactions.IntegrationType> integration) TheIntegrationTypes to use.integration(net.dv8tion.jda.api.interactions.IntegrationType... integration) TheIntegrationTypes to use.nsfw(boolean nsfw) scope(CommandScope scope)
-
Constructor Details
-
Builder
public Builder()Constructs a new Builder.
-
-
Method Details
-
context
public CommandDefinition.CommandConfig.Builder context(net.dv8tion.jda.api.interactions.InteractionContextType... context) TheInteractionContextTypes to use. This method will override this builders default valueInteractionContextType.GUILD.- Parameters:
context- theInteractionContextTypes to use
-
context
public CommandDefinition.CommandConfig.Builder context(Collection<net.dv8tion.jda.api.interactions.InteractionContextType> context) TheInteractionContextTypes to use. This method will override this builders default valueInteractionContextType.GUILD.- Parameters:
context- theInteractionContextTypes to use
-
integration
public CommandDefinition.CommandConfig.Builder integration(net.dv8tion.jda.api.interactions.IntegrationType... integration) TheIntegrationTypes to use. This method will override this builders default valueIntegrationType.GUILD_INSTALL.- Parameters:
integration- theIntegrationTypes to use
-
integration
public CommandDefinition.CommandConfig.Builder integration(Collection<net.dv8tion.jda.api.interactions.IntegrationType> 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
public CommandDefinition.CommandConfig.Builder enabledPermissions(net.dv8tion.jda.api.Permission... permissions) - Parameters:
permissions- The defaultPermissions the configured command(s) will be enabled for.
-
enabledPermissions
public CommandDefinition.CommandConfig.Builder enabledPermissions(Collection<net.dv8tion.jda.api.Permission> permissions) - Parameters:
permissions- The defaultPermissions the configured command(s) will be enabled for.
-