@NotNull open fun setPermissionErrorMessageBuilder(permissionErrorMessageBuilder: Function<@NotNull Context, @NotNull Message>!): @NotNull CommandClientBuilder
Sets the builder for the permissions message that will get send to a user when Context
's send methods fails.
permissionErrorMessageBuilder
- Function<Context, Message>!: the Function
IllegalStateException
- if the stored CommandClientConfiguration
is a me.schlaubi.regnumutils.command.configuration.ImmutableCommandClientConfiguration
Return
CommandClientBuilder: the CommandClientBuilder
See Also
CommandClientConfiguration#buildPermissionErrorMessage(Context)