Class Completion

java.lang.Object
tech.xigam.cch.utils.Completion

public final class Completion extends Object
  • Constructor Details

    • Completion

      public Completion(net.dv8tion.jda.api.events.interaction.command.CommandAutoCompleteInteractionEvent event)
  • Method Details

    • getFocusedOption

      public String getFocusedOption()
    • getInput

      public String getInput()
    • addChoice

      public Completion addChoice(String mapping, Object value)
      Adds a choice to reply with.
      Parameters:
      mapping - This is the value that will be SHOWN to the user.
      value - This is the value that will be handled internally by CCH.
      Returns:
      An instance of this completion class.
    • reply

      public void reply()