static DatabaseOutputFunction<java.lang.Long> |
DatabaseOutputFunction.fromChannelId(Bot bot) |
|
static DatabaseOutputFunction<java.lang.Long> |
DatabaseOutputFunction.fromChannelId(Bot bot,
java.util.function.Function<? super discord4j.core.object.entity.GuildChannel,java.lang.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<java.lang.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<java.lang.Long> |
DatabaseOutputFunction.fromRoleId(Bot bot,
java.util.function.Function<? super discord4j.core.object.entity.Role,java.lang.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<java.lang.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<java.lang.Long> |
DatabaseOutputFunction.fromUserId(Bot bot,
java.util.function.Function<? super discord4j.core.object.entity.User,java.lang.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 reactor.core.publisher.Mono<discord4j.core.object.entity.GuildChannel> |
DiscordParser.parseGuildChannel(Bot bot,
discord4j.core.object.util.Snowflake guildId,
java.lang.String str) |
Parses the input into a Discord channel.
|
static reactor.core.publisher.Mono<discord4j.core.object.entity.Role> |
DiscordParser.parseRole(Bot bot,
discord4j.core.object.util.Snowflake guildId,
java.lang.String str) |
Parses the input into a Discord role.
|
static reactor.core.publisher.Mono<discord4j.core.object.entity.User> |
DiscordParser.parseUser(Bot bot,
java.lang.String str) |
Parses the input into a Discord user.
|
static DatabaseInputFunction<java.lang.Long> |
DatabaseInputFunction.toChannelId(Bot bot,
java.lang.Class<? extends discord4j.core.object.entity.GuildChannel> channelType) |
Converts the input into a channel and forwards its ID to the database.
|
static DatabaseInputFunction<java.lang.Long> |
DatabaseInputFunction.toRoleId(Bot bot) |
Converts the input into a role and forwards its ID to the database.
|
static DatabaseInputFunction<java.lang.Long> |
DatabaseInputFunction.toUserId(Bot bot) |
Converts the input into a user and forwards its ID to the database.
|