static DatabaseOutputFunction<Long> |
DatabaseOutputFunction.fromChannelId(Bot bot) |
|
static DatabaseOutputFunction<Long> |
DatabaseOutputFunction.fromChannelId(Bot bot,
Function<? super discord4j.core.object.entity.channel.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
User.getTag() .
|
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 reactor.core.publisher.Mono<discord4j.core.object.entity.channel.GuildChannel> |
DiscordParser.parseGuildChannel(Bot bot,
discord4j.rest.util.Snowflake guildId,
String str) |
Parses the input into a Discord channel.
|
static reactor.core.publisher.Mono<discord4j.core.object.entity.Role> |
DiscordParser.parseRole(Bot bot,
discord4j.rest.util.Snowflake guildId,
String str) |
Parses the input into a Discord role.
|
static reactor.core.publisher.Mono<discord4j.core.object.entity.User> |
DiscordParser.parseUser(Bot bot,
String str) |
Parses the input into a Discord user.
|
static DatabaseInputFunction<Long> |
DatabaseInputFunction.toChannelId(Bot bot,
Class<? extends discord4j.core.object.entity.channel.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.
|