Package kboyle.oktane.discord4j.prefix
Class DiscordPrefix
java.lang.Object
kboyle.oktane.discord4j.prefix.DiscordPrefix
- All Implemented Interfaces:
Prefix
- Direct Known Subclasses:
MentionPrefix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfind(CommandContext context)Returns the index after the prefix, -1 if not found.abstract intfind(DiscordCommandContext context)
-
Constructor Details
-
DiscordPrefix
public DiscordPrefix()
-
-
Method Details
-
find
-
find
Description copied from interface:PrefixReturns the index after the prefix, -1 if not found.- Specified by:
findin interfacePrefix- Parameters:
context- The current executionCommandContext.- Returns:
- The index where the current prefix ends, -1 if not found.
-