Uses of Record Class
com.github.kaktushose.jda.commands.dispatching.context.InvocationContext
Package
Description
Middlewares get executed between preparation and method invocation.
Command parameter validation system.
Command permission system.
-
Uses of InvocationContext in com.github.kaktushose.jda.commands.dispatching.middleware
Modifier and TypeInterfaceDescriptioninterface
Middlewares run just before an interaction event gets dispatched.Modifier and TypeMethodDescriptionvoid
Middleware.accept
(InvocationContext<?> context) Executes this middleware with the givenInvocationContext
. -
Uses of InvocationContext in com.github.kaktushose.jda.commands.dispatching.validation
Modifier and TypeMethodDescriptionboolean
Validator.apply
(@NotNull Object argument, @NotNull Object annotation, @NotNull InvocationContext<?> context) Validates an argument. -
Uses of InvocationContext in com.github.kaktushose.jda.commands.permissions
Modifier and TypeMethodDescriptionboolean
DefaultPermissionsProvider.hasPermission
(@NotNull Member member, @NotNull InvocationContext<?> context) Checks against the default Discord permissions.boolean
DefaultPermissionsProvider.hasPermission
(@NotNull User user, @NotNull InvocationContext<?> context) Doesn't perform checks and will always returntrue
.boolean
PermissionsProvider.hasPermission
(@NotNull Member member, @NotNull InvocationContext<?> context) Checks if aMember
has permissions.boolean
PermissionsProvider.hasPermission
(@NotNull User user, @NotNull InvocationContext<?> context) Checks if aUser
has permissions.