Package revxrsal.commands.jda
Class JDAPermission
java.lang.Object
revxrsal.commands.jda.JDAPermission
- All Implemented Interfaces:
CommandPermission
-
Field Summary
Fields inherited from interface revxrsal.commands.command.CommandPermission
ALWAYS_TRUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canExecute
(@NotNull CommandActor actor) Returns whether the sender has permission to use this command or not.
-
Constructor Details
-
JDAPermission
-
-
Method Details
-
canExecute
Description copied from interface:CommandPermission
Returns whether the sender has permission to use this command or not.- Specified by:
canExecute
in interfaceCommandPermission
- Parameters:
actor
- Actor to test against- Returns:
true
if they can use it, false if otherwise.
-