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 TypeMethodDescriptionint
find(CommandContext context)
Returns the index after the prefix, -1 if not found.abstract int
find(DiscordCommandContext context)
-
Constructor Details
-
DiscordPrefix
public DiscordPrefix()
-
-
Method Details
-
find
-
find
Description copied from interface:Prefix
Returns the index after the prefix, -1 if not found.- Specified by:
find
in interfacePrefix
- Parameters:
context
- The current executionCommandContext
.- Returns:
- The index where the current prefix ends, -1 if not found.
-