Class MessageCommandExecutorBuilder

java.lang.Object
dev.sympho.modular_commands.execute.MessageCommandExecutorBuilder

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @NotThreadSafe public final class MessageCommandExecutorBuilder extends Object
MessageCommandExecutorBuilder collects parameters and invokes the static factory method: new dev.sympho.modular_commands.execute.MessageCommandExecutor(..). Call the build() method to get a result of type dev.sympho.modular_commands.execute.MessageCommandExecutor.

MessageCommandExecutorBuilder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Constructor Details

    • MessageCommandExecutorBuilder

      public MessageCommandExecutorBuilder()
      Creates a MessageCommandExecutorBuilder factory builder.
       new MessageCommandExecutorBuilder()
          .client(discord4j.core.GatewayDiscordClient) // required client
          .registry(dev.sympho.modular_commands.api.registry.Registry) // required registry
          .accessManager(dev.sympho.bot_utils.access.AccessManager) // optional accessManager
          .meters(io.micrometer.core.instrument.MeterRegistry) // optional meters
          .observations(io.micrometer.observation.ObservationRegistry) // optional observations
          .prefixProvider(dev.sympho.modular_commands.execute.PrefixProvider) // required prefixProvider
          .aliases(dev.sympho.modular_commands.execute.AliasProvider) // optional aliases
          .build();
       
  • Method Details