Package kboyle.oktane.core
Interface PrefixHandler
- All Known Subinterfaces:
DiscordPrefixHandler
- All Known Implementing Classes:
DefaultPrefixHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a way to handle
Prefix
's.-
Method Summary
Modifier and TypeMethodDescriptiondefault reactor.core.publisher.Mono<Integer>
find(CommandContext context)
Finds the index to start parsing from.reactor.core.publisher.Mono<Collection<Prefix>>
get(CommandContext context)
Gets thePrefix
's for the givenCommandContext
.
-
Method Details
-
get
Gets thePrefix
's for the givenCommandContext
.- Parameters:
context
- The current executionCommandContext
.- Returns:
- A collection of
Prefix
's.
-
find
Finds the index to start parsing from.- Parameters:
context
- The current executionCommandContext
.- Returns:
- The index to start parsing from, -1 if there is a missing prefix.
-