Enum InteractionCallbackAction.ResponseType
- java.lang.Object
-
- java.lang.Enum<InteractionCallbackAction.ResponseType>
-
- net.dv8tion.jda.api.requests.restaction.interactions.InteractionCallbackAction.ResponseType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InteractionCallbackAction.ResponseType>
- Enclosing interface:
- InteractionCallbackAction
public static enum InteractionCallbackAction.ResponseType extends java.lang.Enum<InteractionCallbackAction.ResponseType>
The possible types of interaction responses.
This is currently only used internally to reduce interface complexity.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHANNEL_MESSAGE_WITH_SOURCE
Immediately respond to an interaction with a messageDEFERRED_CHANNEL_MESSAGE_WITH_SOURCE
Delayed or Deferred response to an interaction, this sends a "Thinking..." message to the channelDEFERRED_MESSAGE_UPDATE
Defer the update of the message for a component interactionMESSAGE_UPDATE
Update the message for a component interaction
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRaw()
The raw integer key for this response typestatic InteractionCallbackAction.ResponseType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InteractionCallbackAction.ResponseType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHANNEL_MESSAGE_WITH_SOURCE
public static final InteractionCallbackAction.ResponseType CHANNEL_MESSAGE_WITH_SOURCE
Immediately respond to an interaction with a message
-
DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE
public static final InteractionCallbackAction.ResponseType DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE
Delayed or Deferred response to an interaction, this sends a "Thinking..." message to the channel
-
DEFERRED_MESSAGE_UPDATE
public static final InteractionCallbackAction.ResponseType DEFERRED_MESSAGE_UPDATE
Defer the update of the message for a component interaction
-
MESSAGE_UPDATE
public static final InteractionCallbackAction.ResponseType MESSAGE_UPDATE
Update the message for a component interaction
-
-
Method Detail
-
values
public static InteractionCallbackAction.ResponseType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InteractionCallbackAction.ResponseType c : InteractionCallbackAction.ResponseType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InteractionCallbackAction.ResponseType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getRaw
public int getRaw()
The raw integer key for this response type- Returns:
- The raw key
-
-