Uses of Class
com.github.alex1304.ultimategdbot.api.command.Context
-
Uses of Context in com.github.alex1304.ultimategdbot.api.command
Methods in com.github.alex1304.ultimategdbot.api.command that return Context Modifier and Type Method Description Context
ExecutableCommand. getContext()
Gets the context of the command.Methods in com.github.alex1304.ultimategdbot.api.command with parameters of type Context Modifier and Type Method Description reactor.core.publisher.Mono<Void>
CommandErrorHandler. apply(reactor.core.publisher.Mono<Void> commandMono, Context ctx)
Applies the handler on the resulting Mono ofCommand.run(Context)
.reactor.core.publisher.Mono<Void>
PermissionLevel. checkGranted(Context ctx)
Completes empty if the permission is granted in the given context, or errors withPermissionDeniedException
otherwise.reactor.core.publisher.Mono<Boolean>
PermissionLevel. isGranted(Context ctx)
Emits true if the permission is granted in the given context, false otherwise.reactor.core.publisher.Mono<Void>
Command. run(Context ctx)
Defines the action of the commandMethod parameters in com.github.alex1304.ultimategdbot.api.command with type arguments of type Context Modifier and Type Method Description <T extends Throwable>
voidCommandErrorHandler. addHandler(Class<T> errorClass, BiFunction<T,Context,reactor.core.publisher.Mono<Void>> handleAction)
Adds an error handler.Constructors in com.github.alex1304.ultimategdbot.api.command with parameters of type Context Constructor Description ExecutableCommand(Command command, Context context, CommandErrorHandler errorHandler)
-
Uses of Context in com.github.alex1304.ultimategdbot.api.command.annotated
Methods in com.github.alex1304.ultimategdbot.api.command.annotated with parameters of type Context Modifier and Type Method Description reactor.core.publisher.Mono<Void>
AnnotatedCommand. run(Context ctx)
-
Uses of Context in com.github.alex1304.ultimategdbot.api.command.annotated.paramconverter
Methods in com.github.alex1304.ultimategdbot.api.command.annotated.paramconverter with parameters of type Context Modifier and Type Method Description reactor.core.publisher.Mono<discord4j.core.object.entity.GuildChannel>
GuildChannelConverter. convert(Context ctx, String input)
reactor.core.publisher.Mono<Integer>
IntConverter. convert(Context ctx, String input)
reactor.core.publisher.Mono<Long>
LongConverter. convert(Context ctx, String input)
reactor.core.publisher.Mono<T>
ParamConverter. convert(Context ctx, String input)
Accepts a String input and parses it into an object of type T.reactor.core.publisher.Mono<discord4j.core.object.entity.Role>
RoleConverter. convert(Context ctx, String input)
reactor.core.publisher.Mono<String>
StringConverter. convert(Context ctx, String input)
reactor.core.publisher.Mono<discord4j.core.object.entity.User>
UserConverter. convert(Context ctx, String input)
-
Uses of Context in com.github.alex1304.ultimategdbot.api.utils
Methods in com.github.alex1304.ultimategdbot.api.utils with parameters of type Context Modifier and Type Method Description static reactor.core.publisher.Flux<discord4j.core.object.entity.Message>
BotUtils. debugError(String header, Context ctx, Throwable error)
Sends an error report to the debug log channel.static reactor.core.publisher.Mono<Void>
BotUtils. sendPaginatedMessage(Context ctx, String text)
static reactor.core.publisher.Mono<Void>
BotUtils. sendPaginatedMessage(Context ctx, String text, PaginationControls controls)
static reactor.core.publisher.Mono<Void>
BotUtils. sendPaginatedMessage(Context ctx, String text, PaginationControls controls, int pageLength)
-
Uses of Context in com.github.alex1304.ultimategdbot.api.utils.menu
Methods in com.github.alex1304.ultimategdbot.api.utils.menu with parameters of type Context Modifier and Type Method Description reactor.core.publisher.Mono<Void>
InteractiveMenu. open(Context ctx)
Opens the interactive menu, that is, sends the menu message over Discord and starts listening for user's interaction.