Class GuildSettingsValueConverter
- java.lang.Object
-
- com.github.alex1304.ultimategdbot.api.utils.GuildSettingsValueConverter
-
public class GuildSettingsValueConverter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
NONE_VALUE
-
Constructor Summary
Constructors Constructor Description GuildSettingsValueConverter(Bot bot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<String>
fromChannelId(long channelId, long guildId)
reactor.core.publisher.Mono<String>
fromNumber(Number num, long guildId)
reactor.core.publisher.Mono<String>
fromRoleId(long roleId, long guildId)
reactor.core.publisher.Mono<String>
justCheck(String str, long guildId, java.util.function.Predicate<String> check, String errorMessage)
reactor.core.publisher.Mono<String>
noConversion(String str, long guildId)
reactor.core.publisher.Mono<Boolean>
toBoolean(String str, long guildId)
reactor.core.publisher.Mono<Long>
toCategoryId(String str, long guildId)
<N extends Number>
reactor.core.publisher.Mono<N>toNumber(String str, long guildId, java.util.function.Function<String,N> converter)
<N extends Number>
reactor.core.publisher.Mono<N>toNumberWithCheck(String str, long guildId, java.util.function.Function<String,N> converter, java.util.function.Predicate<N> check, String errorMessage)
reactor.core.publisher.Mono<Long>
toRoleId(String str, long guildId)
reactor.core.publisher.Mono<Long>
toTextChannelId(String str, long guildId)
reactor.core.publisher.Mono<Long>
toVoiceChannelId(String str, long guildId)
-
-
-
Field Detail
-
NONE_VALUE
public static final String NONE_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GuildSettingsValueConverter
public GuildSettingsValueConverter(Bot bot)
-
-
Method Detail
-
justCheck
public reactor.core.publisher.Mono<String> justCheck(String str, long guildId, java.util.function.Predicate<String> check, String errorMessage)
-
toNumber
public <N extends Number> reactor.core.publisher.Mono<N> toNumber(String str, long guildId, java.util.function.Function<String,N> converter)
-
toNumberWithCheck
public <N extends Number> reactor.core.publisher.Mono<N> toNumberWithCheck(String str, long guildId, java.util.function.Function<String,N> converter, java.util.function.Predicate<N> check, String errorMessage)
-
fromRoleId
public reactor.core.publisher.Mono<String> fromRoleId(long roleId, long guildId)
-
toVoiceChannelId
public reactor.core.publisher.Mono<Long> toVoiceChannelId(String str, long guildId)
-
fromChannelId
public reactor.core.publisher.Mono<String> fromChannelId(long channelId, long guildId)
-
-