static <D> DatabaseOutputFunction<D> |
DatabaseOutputFunction.from(Function<? super D,String> converter) |
Forwards the value from the database by returning its string representation
provided by the given function.
|
static DatabaseOutputFunction<Long> |
DatabaseOutputFunction.fromChannelId(Bot bot) |
|
static DatabaseOutputFunction<Long> |
DatabaseOutputFunction.fromChannelId(Bot bot,
Function<? super discord4j.core.object.entity.GuildChannel,String> channelToString) |
Reads the database value as a channel ID, attempts to convert it to a channel
and gives a string representation of this channel.
|
static DatabaseOutputFunction<Long> |
DatabaseOutputFunction.fromRoleId(Bot bot) |
Reads the database value as a role ID, attempts to convert it to a role and
gives a string representation of this role provided by
DiscordFormatter.formatRole(Role) .
|
static DatabaseOutputFunction<Long> |
DatabaseOutputFunction.fromRoleId(Bot bot,
Function<? super discord4j.core.object.entity.Role,String> roleToString) |
Reads the database value as a role ID, attempts to convert it to a role and
gives a string representation of this role.
|
static DatabaseOutputFunction<Long> |
DatabaseOutputFunction.fromUserId(Bot bot) |
Reads the database value as a user ID, attempts to convert it to a user and
gives a string representation of this user provided by
DiscordFormatter.formatUser(User) .
|
static DatabaseOutputFunction<Long> |
DatabaseOutputFunction.fromUserId(Bot bot,
Function<? super discord4j.core.object.entity.User,String> userToString) |
Reads the database value as a user ID, attempts to convert it to a user and
gives a string representation of this user.
|
static <D> DatabaseOutputFunction<D> |
DatabaseOutputFunction.of(BiFunction<D,Long,reactor.core.publisher.Mono<String>> function) |
|
static <D> DatabaseOutputFunction<D> |
DatabaseOutputFunction.stringValue() |
Forwards the value from the database by returning its string representation
provided by Object.toString()
|