common / me.schlaubi.regnumutils.command / CommandClientBuilder / enableDefaultPrefixOverride

enableDefaultPrefixOverride

@NotNull open fun enableDefaultPrefixOverride(alwaysDefaultPrefix: Boolean): @NotNull CommandClientBuilder

Let the bot always accept the default prefix even if there is a custom one.

Parameters

alwaysDefaultPrefix - Boolean: whether this should get enabled or not

Exceptions

IllegalStateException - if the stored CommandClientConfiguration is a me.schlaubi.regnumutils.command.configuration.ImmutableCommandClientConfiguration

Return
CommandClientBuilder: the CommandClientBuilder

See Also
CommandClientConfiguration#getAlwaysDefaultPrefix()