static DatabaseInputFunction<String> |
DatabaseInputFunction.asIs() |
Forwards the input value to the database as is, without any modification or
check.
|
static <D> DatabaseInputFunction<D> |
DatabaseInputFunction.of(BiFunction<String,Long,reactor.core.publisher.Mono<D>> function) |
|
static <D> DatabaseInputFunction<D> |
DatabaseInputFunction.to(Function<? super String,D> converter) |
Converts the input using the supplied conversion function.
|
static DatabaseInputFunction<Long> |
DatabaseInputFunction.toChannelId(Bot bot,
Class<? extends discord4j.core.object.entity.GuildChannel> channelType) |
Converts the input into a channel and forwards its ID to the database.
|
static DatabaseInputFunction<Long> |
DatabaseInputFunction.toRoleId(Bot bot) |
Converts the input into a role and forwards its ID to the database.
|
static DatabaseInputFunction<Long> |
DatabaseInputFunction.toUserId(Bot bot) |
Converts the input into a user and forwards its ID to the database.
|
default DatabaseInputFunction<D> |
DatabaseInputFunction.withInputCheck(Predicate<String> inputCheck,
String errorMessage) |
Adds a check on the user input before this function is executed.
|
default DatabaseInputFunction<D> |
DatabaseInputFunction.withValueCheck(Predicate<D> valueCheck,
String errorMessage) |
Adds a check on the value produced by this function, after the user input was
process by this function.
|