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)
.<T> reactor.core.publisher.Mono<T>
CommandProvider. convertParam(Context ctx, String input, Class<T> targetType)
reactor.core.publisher.Mono<Boolean>
PermissionChecker. isGranted(PermissionLevel level, Context ctx)
Checks whether the given permission level is granted in the specified context.reactor.core.publisher.Mono<Boolean>
PermissionChecker. isGranted(String name, Context ctx)
Checks whether the given permission is granted in the specified context.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.void
PermissionChecker. register(PermissionLevel level, Function<Context,reactor.core.publisher.Mono<Boolean>> checker)
Registers a new permission into this checker.void
PermissionChecker. register(String name, Function<Context,reactor.core.publisher.Mono<Boolean>> checker)
Registers a new permission into this checker.Constructors in com.github.alex1304.ultimategdbot.api.command with parameters of type Context Constructor Description ExecutableCommand(Command command, Context context, CommandErrorHandler errorHandler, PermissionChecker permissionChecker)
-
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.channel.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.command.menu
Methods in com.github.alex1304.ultimategdbot.api.command.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.
-