Class BotOwnerJda
- java.lang.Object
-
- net.kautler.command.api.restriction.jda.BotOwnerJda
-
- All Implemented Interfaces:
Restriction<Message>
@ApplicationScoped public class BotOwnerJda extends Object implements Restriction<Message>
A restriction that allows a command for the bot owner and is evaluated by the JDA command handler.
-
-
Constructor Summary
Constructors Constructor Description BotOwnerJda()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowCommand(CommandContext<? extends Message> commandContext)Returns whether a command caused by the given command context should be allowed by this restriction or not.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.kautler.command.api.restriction.Restriction
getRealClass
-
-
-
-
Method Detail
-
allowCommand
public boolean allowCommand(CommandContext<? extends Message> commandContext)
Description copied from interface:RestrictionReturns whether a command caused by the given command context should be allowed by this restriction or not.- Specified by:
allowCommandin interfaceRestriction<Message>- Parameters:
commandContext- the command context, usually fully populated- Returns:
- whether a command caused by the given command context should be allowed by this restriction or not
-
-