Uses of Interface
com.github.alex1304.ultimategdbot.api.Bot
-
-
Uses of Bot in com.github.alex1304.ultimategdbot.api
Methods in com.github.alex1304.ultimategdbot.api with parameters of type Bot Modifier and Type Method Description reactor.core.publisher.Mono<Plugin>
PluginBootstrap. setup(Bot bot)
Configures aPlugin
for the given bot. -
Uses of Bot in com.github.alex1304.ultimategdbot.api.command
Methods in com.github.alex1304.ultimategdbot.api.command that return Bot Modifier and Type Method Description Bot
Context. bot()
Gets the bot instance.Methods in com.github.alex1304.ultimategdbot.api.command with parameters of type Bot Modifier and Type Method Description reactor.core.publisher.Mono<ExecutableCommand>
CommandProvider. provideFromEvent(Bot bot, String prefix, discord4j.core.event.domain.message.MessageCreateEvent event, discord4j.core.object.entity.channel.MessageChannel channel)
Provides a command based on a MessageCreateEvent.Constructors in com.github.alex1304.ultimategdbot.api.command with parameters of type Bot Constructor Description CommandKernel(Bot bot)
Context(Command command, discord4j.core.event.domain.message.MessageCreateEvent event, List<String> args, FlagSet flags, Bot bot, String prefixUsed, discord4j.core.object.entity.channel.MessageChannel channel)
-
Uses of Bot in com.github.alex1304.ultimategdbot.api.guildconfig
Methods in com.github.alex1304.ultimategdbot.api.guildconfig with parameters of type Bot Modifier and Type Method Description GuildConfigurator<D>
GuildConfigData. configurator(Bot bot)
static <D extends GuildConfigData<D>>
Function<D,reactor.core.publisher.Mono<discord4j.core.object.entity.channel.GuildChannel>>ValueGetters. forGuildChannel(Bot bot, Function<? super D,discord4j.rest.util.Snowflake> idGetter)
Convenient method to generate a value getter for guild channel configuration entries.static <D extends GuildConfigData<D>>
Function<D,reactor.core.publisher.Mono<discord4j.core.object.entity.Member>>ValueGetters. forGuildMember(Bot bot, Function<? super D,discord4j.rest.util.Snowflake> idGetter)
Convenient method to generate a value getter for guild member configuration entries.static <D extends GuildConfigData<D>>
Function<D,reactor.core.publisher.Mono<discord4j.core.object.entity.Role>>ValueGetters. forGuildRole(Bot bot, Function<? super D,discord4j.rest.util.Snowflake> idGetter)
Convenient method to generate a value getter for guild role configuration entries.static <D extends GuildConfigData<D>>
Function<D,reactor.core.publisher.Mono<discord4j.core.object.entity.channel.GuildChannel>>ValueGetters. forOptionalGuildChannel(Bot bot, Function<? super D,Optional<discord4j.rest.util.Snowflake>> idGetter)
Convenient method to generate a value getter for guild channel configuration entries.static <D extends GuildConfigData<D>>
Function<D,reactor.core.publisher.Mono<discord4j.core.object.entity.Member>>ValueGetters. forOptionalGuildMember(Bot bot, Function<? super D,Optional<discord4j.rest.util.Snowflake>> idGetter)
Convenient method to generate a value getter for guild member configuration entries.static <D extends GuildConfigData<D>>
Function<D,reactor.core.publisher.Mono<discord4j.core.object.entity.Role>>ValueGetters. forOptionalGuildRole(Bot bot, Function<? super D,Optional<discord4j.rest.util.Snowflake>> idGetter)
Convenient method to generate a value getter for guild role configuration entries. -
Uses of Bot in com.github.alex1304.ultimategdbot.api.util
Methods in com.github.alex1304.ultimategdbot.api.util with parameters of type Bot Modifier and Type Method Description static DatabaseOutputFunction<Long>
DatabaseOutputFunction. fromChannelId(Bot bot)
Reads the database value as a channel ID, attempts to convert it to a channel and gives a string representation of this channel provided byDiscordFormatter.formatGuildChannel(GuildChannel)
.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 byDiscordFormatter.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 byUser.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.
-