Class NotUserValidator
java.lang.Object
com.github.kaktushose.jda.commands.dispatching.validation.impl.NotUserValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(@NotNull Object argument, @NotNull Object annotation, @NotNull InvocationContext<?> context) Validates an argument.
-
Constructor Details
-
NotUserValidator
public NotUserValidator()
-
-
Method Details
-
apply
public boolean apply(@NotNull @NotNull Object argument, @NotNull @NotNull Object annotation, @NotNull @NotNull InvocationContext<?> context) Validates an argument. The argument must not be the specified user or member.- Specified by:
apply
in interfaceValidator
- Parameters:
argument
- the argument to validateannotation
- the corresponding annotationcontext
- the correspondingInvocationContext
- Returns:
true
if the argument isn't the specified user or member
-