Enum Class InteractionResponseType

java.lang.Object
java.lang.Enum<InteractionResponseType>
com.mewna.catnip.entity.interaction.InteractionResponseType
All Implemented Interfaces:
Serializable, Comparable<InteractionResponseType>, Constable

public enum InteractionResponseType extends Enum<InteractionResponseType>
Since:
12/10/20.
Author:
amy
  • Enum Constant Details

    • PONG

      public static final InteractionResponseType PONG
    • ACKNOWLEDGE

      @Deprecated public static final InteractionResponseType ACKNOWLEDGE
      Deprecated.
      ACK a command without sending a message, eating the user's input.
    • CHANNEL_MESSAGE

      @Deprecated public static final InteractionResponseType CHANNEL_MESSAGE
      Deprecated.
      Respond with a message, eating the user's input.
    • CHANNEL_MESSAGE_WITH_SOURCE

      public static final InteractionResponseType CHANNEL_MESSAGE_WITH_SOURCE
      Respond with a message, showing the user's input.
    • ACK_WITH_SOURCE

      public static final InteractionResponseType ACK_WITH_SOURCE
      ACK a command without sending a message, showing the user's input.
    • DEFERRED_UPDATE_MESSAGE

      public static final InteractionResponseType DEFERRED_UPDATE_MESSAGE
      For components, ACK an interaction and edit the original message later; the user does not see a loading state
    • UPDATE_MESSAGE

      public static final InteractionResponseType UPDATE_MESSAGE
      For components, edit the message the component was attached to
  • Method Details

    • values

      public static InteractionResponseType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static InteractionResponseType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • byKey

      public static InteractionResponseType byKey(int key)
    • key

      public int key()