Class Callback

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

public final class Callback extends Object
A callback for buttons and forms.
  • Constructor Details

    • Callback

      public Callback(net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent event)
    • Callback

      public Callback(net.dv8tion.jda.api.events.interaction.component.SelectMenuInteractionEvent event)
  • Method Details

    • getReference

      public String getReference()
    • getSelectedOptions

      public List<String> getSelectedOptions()
      Exists **only** for menus.
      Returns:
      A list of options the user has selected.
    • getMember

      @Nullable public net.dv8tion.jda.api.entities.Member getMember()
    • deferEdit

      public Callback deferEdit()
    • deferReply

      public Callback deferReply()
    • edit

      public void edit(String message)
    • reply

      public void reply(String message)
    • edit

      public void edit(net.dv8tion.jda.api.entities.MessageEmbed embed)
    • reply

      public void reply(net.dv8tion.jda.api.entities.MessageEmbed embed)
    • edit

      public Callback edit(net.dv8tion.jda.api.interactions.components.buttons.Button... buttons)
    • edit

      public Callback edit(net.dv8tion.jda.api.interactions.components.selections.SelectMenu menu)
    • edit

      public Callback edit(net.dv8tion.jda.api.interactions.components.ActionRow row)