Class CommandDefinition.CommandConfig.Builder

java.lang.Object
io.github.kaktushose.jdac.definitions.interactions.command.CommandDefinition.CommandConfig.Builder
Enclosing class:
CommandDefinition.CommandConfig

public static class CommandDefinition.CommandConfig.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
      Constructs a new Builder.
  • Method Details

    • context

      public CommandDefinition.CommandConfig.Builder context(net.dv8tion.jda.api.interactions.InteractionContextType... context)
      The InteractionContextTypes to use. This method will override this builders default value InteractionContextType.GUILD.
      Parameters:
      context - the InteractionContextTypes to use
    • context

      public CommandDefinition.CommandConfig.Builder context(Collection<net.dv8tion.jda.api.interactions.InteractionContextType> context)
      The InteractionContextTypes to use. This method will override this builders default value InteractionContextType.GUILD.
      Parameters:
      context - the InteractionContextTypes to use
    • integration

      public CommandDefinition.CommandConfig.Builder integration(net.dv8tion.jda.api.interactions.IntegrationType... integration)
      The IntegrationTypes to use. This method will override this builders default value IntegrationType.GUILD_INSTALL.
      Parameters:
      integration - the IntegrationTypes to use
    • integration

      public CommandDefinition.CommandConfig.Builder integration(Collection<net.dv8tion.jda.api.interactions.IntegrationType> integration)
      The IntegrationTypes to use. This method will override this builders default value IntegrationType.GUILD_INSTALL.
      Parameters:
      integration - the IntegrationTypes to use
    • scope

      Parameters:
      scope - the CommandScope to use
    • nsfw

      public CommandDefinition.CommandConfig.Builder nsfw(boolean nsfw)
      Parameters:
      nsfw - true if 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 default Permissions the configured command(s) will be enabled for.
    • enabledPermissions

      public CommandDefinition.CommandConfig.Builder enabledPermissions(Collection<net.dv8tion.jda.api.Permission> permissions)
      Parameters:
      permissions - The default Permissions the configured command(s) will be enabled for.