Class JDAPermission

java.lang.Object
revxrsal.commands.jda.JDAPermission
All Implemented Interfaces:
CommandPermission

public final class JDAPermission extends Object implements CommandPermission
  • Constructor Details

  • Method Details

    • canExecute

      public boolean canExecute(@NotNull @NotNull CommandActor actor)
      Description copied from interface: CommandPermission
      Returns whether the sender has permission to use this command or not.
      Specified by:
      canExecute in interface CommandPermission
      Parameters:
      actor - Actor to test against
      Returns:
      true if they can use it, false if otherwise.