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

acceptMentionPrefix

@NotNull open fun acceptMentionPrefix(acceptMentionPrefix: Boolean): @NotNull CommandClientBuilder

Sets whether the bot should accept a mention as a command prefix or not.

Parameters

acceptMentionPrefix - Boolean: whether the bot should accept a mention as a command prefix or not

Exceptions

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

Return
CommandClientBuilder: the CommandClientBuilder

See Also
CommandClientConfiguration#getAcceptMentionPrefix()