Package net.dv8tion.jda.api.entities
Class Message.Interaction
java.lang.Object
net.dv8tion.jda.api.entities.Message.Interaction
- All Implemented Interfaces:
- ISnowflake
- Enclosing interface:
- Message
Deprecated.
Represents an 
Interaction provided with a Message.- 
Constructor SummaryConstructorsConstructorDescriptionInteraction(long id, int type, String name, User user, Member member) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionlongDeprecated.The Snowflake id of this entity.Deprecated.TheMemberwho caused this interaction.getName()Deprecated.The command name.getType()Deprecated.TheInteractionTypefor this interaction.intDeprecated.The raw interaction type.getUser()Deprecated.TheUserwho caused this interaction.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflakegetId, getTimeCreated
- 
Constructor Details- 
InteractionDeprecated.
 
- 
- 
Method Details- 
getIdLongpublic long getIdLong()Deprecated.Description copied from interface:ISnowflakeThe Snowflake id of this entity. This is unique to every entity and will never change.- Specified by:
- getIdLongin interface- ISnowflake
- Returns:
- Long containing the Id.
 
- 
getTypeRawpublic int getTypeRaw()Deprecated.The raw interaction type.
 It is recommended to usegetType()instead.- Returns:
- The raw interaction type
 
- 
getTypeDeprecated.TheInteractionTypefor this interaction.- Returns:
- The InteractionTypeorInteractionType.UNKNOWN
 
- 
getNameDeprecated.The command name.- Returns:
- The command name
 
- 
getUserDeprecated.TheUserwho caused this interaction.- Returns:
- The User
 
- 
getMemberDeprecated.TheMemberwho caused this interaction.
 This is null if the interaction is not from a guild.- Returns:
- The Member
 
 
- 
Message.InteractionMetadata