Interface Prefix

All Known Implementing Classes:
CharPrefix, DiscordPrefix, MentionPrefix, StringPrefix

public interface Prefix
Represents a prefix for an input to passed to CommandHandler.execute(String, CommandContext).
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    find​(CommandContext context)
    Returns the index after the prefix, -1 if not found.
     
  • Method Details

    • find

      int find(CommandContext context)
      Returns the index after the prefix, -1 if not found.
      Parameters:
      context - The current execution CommandContext.
      Returns:
      The index where the current prefix ends, -1 if not found.
    • value

      Object value()